Computing.Net > Forums > Disk Operating System > Removing %20 From Filenames

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

Reply to Message Icon

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?

Thanks in advance for any help.
Jonny



Sponsored Link
Ads by Google

Response Number 1
Name: Wengier
Date: April 22, 2004 at 20:34:59 Pacific
Reply:

It's really not a good idea to post a NT batch question in the DOS forum! Please read more from:

http://www.computing.net/dos/wwwboard/forum/14633.html

---------------
Long Live DOS!


0

Response Number 2
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.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Removing %20 From Filenames

removing section from filenames www.computing.net/answers/dos/removing-section-from-filenames/10716.html

How to run add/remove program from MS-DOS? www.computing.net/answers/dos/how-to-run-addremove-program-from-msdos/5074.html

Remove chacters from file names www.computing.net/answers/dos/remove-chacters-from-file-names/14019.html