windows - Moving text file and type conversion in command line -


i need convert multiple unix files pc , move them specific folder, without keeping original unix file.

i tested commands below , worked, type command keeps original unix file , creates separate pc file.

c:\  type input_filename | more /p > output_filename  <<< command conver unix ansi, works perfect.  c:\ move c:\users\you\somefile.txt   c:\temp\newlocation.txt <<< move file location, work perfect. 

i know if there's way use type , move command together, similar this:

c:\move c:\users\you\somefile.txt type more /p >c:\temp\newlocation.txt 

so move unix file directory while changing format windows.

cd /d  "c:\users\you\" %%i in (*.txt) (   echo processing %%i   type "%%i" | more /p > "c:\temp\%%i"   del "%%i" ) 

Comments

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -