Computing.Net > Forums > Windows 2000 > Help renaming a file in DOS

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

Help renaming a file in DOS

Reply to Message Icon

Name: Spidermanx
Date: May 20, 2005 at 07:02:32 Pacific
OS: Windows 2000
CPU/Ram: NA
Comment:

I need to rename a file in a DOS Batch script but do not know how to handle the long file name.

Filename: eop.test_BBB_2005052000000M07S.txt

I want to rename the file to

Filename: 2005052000000M07S.txt

Any help is greatly appreciated!



Sponsored Link
Ads by Google

Response Number 1
Name: Petit Jean
Date: May 20, 2005 at 07:19:19 Pacific
Reply:

Try dos standalone forum.Good luck.


0

Response Number 2
Name: hiho
Date: May 20, 2005 at 23:29:27 Pacific
Reply:

Why send to DOS STANDALONE FORUM? W2K has NT COMMAND PROMPT not MS-DOS COMMAND PROMPT.

http://home.mweb.co.za/cl/clemkr/nt_commands.htm


0

Response Number 3
Name: Rambler
Date: May 21, 2005 at 07:34:11 Pacific
Reply:

You have to put non-8.3 filenames and/or pathnames in quotes, including those with spaces included.

ren "eop.test_BBB_2005052000000M07S.txt" "2005052000000M07S.txt"

Precede the first filename with path info. if necessary, inside the quotes, e.g. "C:\My Folder\eop.test_BBB_2005.........."


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Security, CCTV, Alarms Unable To Add Printer



Post Locked

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


Go to Windows 2000 Forum Home


Sponsored links

Ads by Google


Results for: Help renaming a file in DOS

Rename a file to date with script www.computing.net/answers/windows-2000/rename-a-file-to-date-with-script/58187.html

Access program files in DOS Win2000 www.computing.net/answers/windows-2000/access-program-files-in-dos-win2000/39742.html

Viewing NTFS files in DOS www.computing.net/answers/windows-2000/viewing-ntfs-files-in-dos/20457.html