born2achieve
New member
- Local time
- 5:31 PM
- Messages
- 36
Hi,
I need to add the prefix to the files in specific directory. For this i need to input the directory name.
I need to add the prefix "Sample_" to all the txt files in the specified directory
Sample code i tried:
but it's not working. any suggestion please
I need to add the prefix to the files in specific directory. For this i need to input the directory name.
I need to add the prefix "Sample_" to all the txt files in the specified directory
Sample code i tried:
Code:
FOR /f "delims=" %%F IN ("D:\Sample\*.txt") DO (RENAME "%%F" "Sample_%%F")
but it's not working. any suggestion please
My Computer
- Computer type
- PC/Desktop
- OS
- windows7 64 bit