Search found 8 matches
- 21 Feb 2013 15:26
- Forum: DOS Batch Forum
- Topic: DOS script to rename and copy files
- Replies: 9
- Views: 7385
Re: DOS script to rename and copy files
Sorry for the bad spelling, foxidrive.
- 21 Feb 2013 15:24
- Forum: DOS Batch Forum
- Topic: DOS script to rename and copy files
- Replies: 9
- Views: 7385
Re: DOS script to rename and copy files
Sorry can't forget Foxydrive you corrected the biggest portion of the coding.
- 21 Feb 2013 15:14
- Forum: DOS Batch Forum
- Topic: DOS script to rename and copy files
- Replies: 9
- Views: 7385
Re: DOS script to rename and copy files
Squashman, your response did the trick. It worked just as expected. Guys thank you so much for your help on this important matter.
- 21 Feb 2013 13:08
- Forum: DOS Batch Forum
- Topic: DOS script to rename and copy files
- Replies: 9
- Views: 7385
Re: DOS script to rename and copy files
I tried that, but it didn't work. On the run execution of the bat file I'm able to see the rename from the old file name to the new file name. It has to be something on the ren "%~1" "%file%" instruction.
- 21 Feb 2013 12:39
- Forum: DOS Batch Forum
- Topic: DOS script to rename and copy files
- Replies: 9
- Views: 7385
Re: DOS script to rename and copy files
I got the following error: C:\Users\marionh\Desktop\Staging2>ren "C:\Users\marionh\Desktop\Staging2\2D@renametest.pdf" "C:\Users\marionh\Desktop\Staging2\2D_renametest.pdf" The syntax of the command is incorrect. I don't understand why, because is executing the rename from 2D@ren...
- 20 Feb 2013 11:26
- Forum: DOS Batch Forum
- Topic: DOS script to rename and copy files
- Replies: 9
- Views: 7385
DOS script to rename and copy files
Hi i'm working on the below script to rename files and after renamed will copy the file to a different target directory, but is not working. can some one revised for me? I don't know what i'm doing wrong. @echo on setlocal enabledelayedexpansion for %%a in (%*) do ( set file=%%a ren "!file!&quo...
- 19 Feb 2013 12:18
- Forum: DOS Batch Forum
- Topic: DOS script to rename filenames
- Replies: 4
- Views: 4492
Re: DOS script to rename filenames
I know we have answered this question in the past on the forums so searching for it shouldn't be a problem. But there is a flaw in your question as you cannot use ? or * to name a file in the first place. Yes, I know. These are files that are named by my clients, they named as they like, and I can'...
- 19 Feb 2013 10:43
- Forum: DOS Batch Forum
- Topic: DOS script to rename filenames
- Replies: 4
- Views: 4492
DOS script to rename filenames
Hi, I need help writing a DOS script to change symbols as of '-%#@*&!"? for an underscore (_) in a filename. or how can I incorporated the below DOS command into a DOS script. for /f "tokens=* delims= " %i in ('dir /b "*.pdf"') do Set LIST=%i& set LIST | ren "%~...