Below steps
elaborate you how to remove space of all files in directory
1. Copy all files
which you want to rename to a directory . (let us assume directory is
c:\Users\Shetty\Desktop\Allfiles\
)
2. Open Notepad &
copy below content & save the file in above directory with .bat
file extension. (assuming filename rename.bat
)
|
3. Now open command
prompt & go to the Allfiles
directory. And run below command
rename.bat
/R
Thats it.. All your
files which has space will be corrected now. Use below Arguments only
if you know what you are doing
rename.bat
: (no arguments) Renames files in the current directory
rename.bat
/R : Renames files in the folder tree rooted at the current
directory
rename.bat
myFolder : Renames files in the "myFolder" directory
found in the current directory.
rename.bat
"c:\my folder\" : Renames files in the specified
path. Quotes are used because path contains a space.
rename.bat
/R c:\ : Renames all files on the C: drive.
this was very helpful for me.
ReplyDeletethank you tara bhai.
Thank you Jamshed
Delete