Description: |
call:ToANSI src dst |
Script: |
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13.
|
:ToANSI src dst -- converts a file to ANSI
:: -- src [in] - source file name to be converted
:: -- trg [in,opt] - target file name, leave blank for in-place conversion
:$created 20060101 :$changed 20080219 :$categories Encoding
:$source https://www.dostips.com
SETLOCAL
set src=%~1
set trg=%~2
set tmp=%temp%.\%~nx1
if "%trg%"=="" set trg=%src%
cmd /A /c type "%src%">"%tmp%"
move /y "%tmp%" "%trg%"
EXIT /b
|
|