Question

I want to search a particular file type(.plt) and then I want to execute a command line command(Eg. Change file type). I am working in windows 7.

Can I write a .bat script to do this issue?

Please help me.....please give me some example.....

Was it helpful?

Solution

for /r %i IN (*.plt) DO echo %i

will list all of the .plt files in the current directory and sub-directories, replace echo with the command of your choice

OTHER TIPS

Not sure what you mean. Could this be it?

ren *.plt *.foo

If you must have a batch file, I once wrote a script.

http://www.adarshr.com/papers/renamex

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top