Search found 3 matches

by Kris.Mitchell
10 Dec 2009 07:31
Forum: DOS Batch Forum
Topic: Batch Rename file using Dos Left Function
Replies: 3
Views: 6361

I don't know if this was really the solution, but I've tested it (and for me at least) I found the error. When running the script from above, using filename 1234.A.1.ai.ps and running the script I got something like 1234.A.1 .jpg I found that I actually had spaces between commands in the file. I, ag...
by Kris.Mitchell
08 Dec 2009 07:49
Forum: DOS Batch Forum
Topic: Batch Rename file using Dos Left Function
Replies: 3
Views: 6361

it DOSe help! I have one last issue though. I have a space between b and the .jpg extention. So I tried FOR /L !b! IN (1,1,10) and FOR /L %%b IN (1,1,10) just in case there were more than one space as well as SET b=!b:~0,-1! and Set b=%b:~0,-1% I ended up with funky filenames each go...
by Kris.Mitchell
07 Dec 2009 12:50
Forum: DOS Batch Forum
Topic: Batch Rename file using Dos Left Function
Replies: 3
Views: 6361

Batch Rename file using Dos Left Function

I am using a batch file with ImageMagick to convert pictures from one format to another. I only need to run the program for the files in the directory. I can't get the variable b to be a:0,-4 It ends up printing to the screen as b:0,-4. for %%a in (*.ps) DO ( SET b=%%a:~0,-4! convert -de...