Computing.Net > Forums > Disk Operating System > DOS rename

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.

DOS rename

Reply to Message Icon

Name: jaikki
Date: January 1, 2004 at 23:38:19 Pacific
OS: win2000
CPU/Ram: ?
Comment:

Hi!
I need to know how to rename file 123456789.pdf to 12345-6789.pdf? I need to do this in .bat batch file. I have lots of same kind of files which needs to be renamed at the same way.



Sponsored Link
Ads by Google

Response Number 1
Name: JackG
Date: January 2, 2004 at 00:41:17 Pacific
Reply:


REMANE "123456789.ppp" "12345-6789".pp2"

Usually works well on most versions of Window that support LFN, when I try it.


0

Response Number 2
Name: jaikki
Date: January 2, 2004 at 00:50:28 Pacific
Reply:

I need to do this automatically in dos batch file using wildcards or something. I dont know what filenames are so that doesnt help me. if i rename 123456789.pdf to 123456-789.pdf using command rename *.pdf ??????-???.pdf the result file is named 123456-89.pdf, 7 is replaced by -, i dont what it to be replaced.


0

Response Number 3
Name: x86
Date: January 2, 2004 at 04:02:40 Pacific
Reply:

THERE IS NO M$DOS IN THE NT FAMILY PLEASE POST IN PROGRAMMING FORUM:

NT COMMAND PROMPT COMMANDS:
http://download.sis.com/index_step3.php


0

Response Number 4
Name: Wengier
Date: January 2, 2004 at 07:03:15 Pacific
Reply:

Webmaster's words:

"DO NOT ask questions regarding the DOS "command" prompt for Windows NT, 2000 or XP on this forum. Use the Windows NT, 2000 or XP forum, respectively.

All DOS scripting questions must be directed to the Computing.Net Programming Forum."


0

Response Number 5
Name: Mick C
Date: January 2, 2004 at 10:41:17 Pacific
Reply:

The DOS command is RENAME or REN NOT REMANE!

i.e. REN FILE1.TXT FILE2.TXT

Which is the same at the NT Command Prompt.

http://www.cotse.com/Ntcommands/ntcmdsCommands_Index.html#00000022

For NT Batch Programming please re-post in the NT or Programming Forums



0

Related Posts

See More



Response Number 6
Name: joe-g
Date: January 4, 2004 at 20:48:50 Pacific
Reply:

In any case, somebody here does not know that the DOS filename format is: "filename.ext" ....After all, if you can't count, why use a computing machine?


0

Sponsored Link
Ads by Google
Reply to Message Icon

How to get xcopy command? DOS Keeps shutting down



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: DOS rename

DOS rename command (Win XP) www.computing.net/answers/dos/dos-rename-command-win-xp/16950.html

Dos rename space www.computing.net/answers/dos/dos-rename-space/8598.html

Rename Multipe Files in DOS www.computing.net/answers/dos/rename-multipe-files-in-dos/14589.html