There is such a batch file:

@<"info.txt">"out.txt" (for /f "delims=" %%i in ('find/n /v ""') do @chcp 65001>nul& set x=%%i& cmd/v/c echo[!x:*]^^=!) pause 

It correctly converts file from CP866 to UNICODE. But for some reason he breaks off the input immediately after his work (pause does not work). And this problem is observed only in XP versions of windows, in the seven there is no such problem. What is the reason I do not understand.

  • This is probably because within one terminal you start the second and it seems to wipe the first one. - KoVadim
  • @KoVadim and why then there is no such problem in the seven? or tell me how to implement it correctly - perfect
  • the right way is to use utilities to convert and run them. Or even better - use normal axles. - KoVadim
  • @KoVadim I will not get rid of xp This is in the TZ and I can not use the free software that does not have the appropriate license. Looking for a grandfather's bike. - perfect
  • then you have at least two options - forget about the TK and go to another company or write a separate batch file that will receive one (two) parameters and do only file conversion. And already a separate batch file will run the first batch file. - KoVadim

0