BAT script search for a particular type of file and execute a command
-
25-10-2019 - |
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.....
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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow