Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- if "%1"=="/?" (
- echo Usage: %0 "directory"
- exit /B
- )
- if "%1"=="" (
- echo Error!
- echo Usage: %0 "directory"
- echo Usage: %0 "/?"
- echo Usage: %0 "help"
- exit /B
- )
- if "%1"=="help" (
- echo This programm converts each file in folders and subfolders to cp866 encode
- exit /B rem что это делает
- ) else (
- if exist "%1" (
- for /r %1 %%f in (*.txt) do (
- iconv -f cp866 -t utf-8 "%%f" > %%f-utf-8
- type %%f-utf-8 > %%f
- del /f %%f-utf-8
- )
- ) else (
- echo Directory does not exist
- )
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement