I’ve an issue with a batch file.
I would create a batch for:
In a folder es C:\origin I have a lot of file like:
Aa 1234.txt
bb 3456.jpg
cc122 443.doc
Ddeeff gg.xls
the program should move the file to C:\origin\temp and remove the space from the name of file and add a prefix “Pre_” before name. So the result should be:
C:\origin\temp\Pre_Aa1234.txt
C:\origin\temp\Pre_bb3456.jpg
C:\origin\temp\Pre_cc122443.doc
C:\origin\temp\Pre_Ddeeffgg.xls
I did the first part of program but i don't know how to do the rest.
Code: Select all
@echo off
echo if "%%3"=="" if not "%%2"=="" ren "%%1 %%2" %%1%%2
lfnfor on
set "=
for %%f in (*.*) do call ~nospace.bat %"%%%f%"%
Thanks in advance