Reputation: 3177
I want to rename all my avi videos.
All the avi videos are in the current directory. I do it like this 'ren ./original.avi new.avi'. But it says the syntax of the command is incorrect.
Upvotes: 0
Views: 1594
Reputation: 992717
There's nothing wrong with specifying the directory of the file you want to rename. However, on Windows you must use \
instead of /
:
ren .\original.avi new.avi
The ren
command thinks you're trying to use one of its command line switches if you use the /
character inside a filename. (It's not very smart.)
Upvotes: 1