@echo off if "%1" == "" ( goto print_out ) else ( if "%1" == "-e" ( goto open_with_vi ) ) goto finish :open_with_vi call 7z.cmd x -so x:\xxx\amho-*.7z | iconv -f utf-8 -t cp949 | vi -R - goto finish :print_out call 7z.cmd x -so x:\xxx\amho-*.7z | cat goto finish :finish