Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Removing %20 From Filenames
Name: Jonny1234 Date: April 22, 2004 at 18:38:50 Pacific OS: W2K SP4 CPU/Ram: P4/256MB
Comment:
Hi,
I would like to write a batch file to rename files which have %20 in place of a space character in their names. Is this possible?
Name: Jonny1234 Date: April 22, 2004 at 21:03:52 Pacific
Reply:
Thanks for the advice.
Can you do it in DOS then?
0
Response Number 3
Name: Mick C Date: April 23, 2004 at 02:13:58 Pacific
Reply:
%20 is as you say a space in a long file name. If you do not like the look of it use an underscore _ in future!
Other than MS-DOS 7.10 this is not supported by DOS. And NT as Wengier has tried to point out does not always handle such modern commands in the same as DOS.
Try the REN command
i.e. REN test%20one test_one
PowerLoad Home Page Please reply with a message to let us all know we are on the right track with you
0
Response Number 4
Name: SpiderMSN Date: May 4, 2004 at 05:30:01 Pacific
Reply:
Yes you can, run edit.com and save the file with a space in it.
Summary: No, that won't work because the REN command keeps the filenames' lengths. However, that can be done via batch file. The following batch file will rename all files with .jpg extention in the current di...
Summary: I just got new monitor and installed CD came with it. After I reboot, the computer stops and monitor does not display anything. I restarted my computer without monitor but the computer stops runing....
Summary: I search for this solution as I see there are many different dos renaming threads, but I couldn't find one to do this specifically. I want to remove 3 characters from a filename very time they occur. ...