tags:

views:

33

answers:

1

Hi guys

I want to rename all my avi videos.

All the avi videos are in the current direcotry. I do it like this 'ren ./original.avi new.avi'.

But it says the syntax of the command is incorrect.

Thanks in advanced

Zhong

+1  A: 

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.)

Greg Hewgill
Yes, I should use '\'.I have tried in xp and win7.<ren .\original.avi new.avi> is not engouth.<ren ".\original.avi" "new.avi"> can work.Thanks
FihopZz