Search found 2 matches

by bobt_1234
30 Aug 2011 10:42
Forum: DOS Batch Forum
Topic: Renaming files with wildcards
Replies: 3
Views: 6325

Re: Renaming files with wildcards

Wow, thanks. I didn't know you could do all that in a bat file.

I have a couple questions.

1. Why is the parameter referred to as %~n1 at the beginning but as %~1 in the rename.

2. I'm assuming the line "var=%var:~0,3% a substring command?
by bobt_1234
29 Aug 2011 15:07
Forum: DOS Batch Forum
Topic: Renaming files with wildcards
Replies: 3
Views: 6325

Renaming files with wildcards

How do you rename a bunch of files using wildcards? I'm trying to do something that seems straightforward and intuitive, but for some reason it's not working. I have a directory of files that are named (001.bmp.jpg, 002.bmp.jpg, etc.) and I'm trying to rename them to get rid of the .bmp part using t...