Description: |
call:ToUNICODE src dst |
Script: |
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13.
|
:ToUNICODE src dst -- converts a file to UNICODE
:: -- 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 /U /c type "%src%">"%tmp%"
move /y "%tmp%" "%trg%"
EXIT /b
|
|