Computing.Net > Forums > Windows NT > Rename Files in NT DOS shell

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.

Rename Files in NT DOS shell

Reply to Message Icon

Name: Andrew
Date: January 29, 2001 at 07:35:44 Pacific
Comment:

Help!

I've got a simple file rename problem that would be easy in UNIX, and I think there is a DOS command for this, but I can't find it.
I wish to rename many files with the same prefix. I want to remove the existing prefix and replace it with a shorter prefix.

For example, a file named "accomack_codes.dbf" which I want to change to "acco_codes.dbf" (along with all the other files starting with "accomack").

If I type "rename accomack_*.dbf acco_*.dbf" I get a file named "acco_ack_codes.dbf" when I want a file named "acco_codes.dbf".

Thanks for your help!
Andrew



Sponsored Link
Ads by Google

Response Number 1
Name: Alfred Dixon
Date: March 26, 2002 at 05:55:36 Pacific
Reply:

I would like to rename a file using the "copy" command. However, I would like to append the date to the destination file name. For example, I would like the following results:
copy apple.out apple.out

Is there anyway to append the date lto a filename in DOS? Help!!!

Thanks!


0

Response Number 2
Name: Alfred Dixon
Date: March 26, 2002 at 05:59:09 Pacific
Reply:

The results should be:

copy apple.out apple(mmddyy).out

not

copy apple.out apple.out


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


NT Dial and Date Program Access



Post Locked

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


Go to Windows NT Forum Home


Sponsored links

Ads by Google


Results for: Rename Files in NT DOS shell

rename files in NT www.computing.net/answers/windows-nt/rename-files-in-nt/21516.html

Can I undelete a file in NT Server? www.computing.net/answers/windows-nt/can-i-undelete-a-file-in-nt-server-/9441.html

Replacing DLL files in NT www.computing.net/answers/windows-nt/replacing-dll-files-in-nt/5523.html