1.

Solve : Capturing file name in a parameter?

Answer»

I am new to USING DOS commands and I am trying write commands in a batch file that will:

1. Find a file in a folder using wildcards
2. Capture the filename and STORE it in a parameter/variable
3. Rename the file
4. Execute a program
5. Rename the file back to the original name using the parameter/variable I stored it in.

Items 2 and 5 are where I am having problems.   Any pointers on how to structure these commands?

Thanks!



Discussion

No Comment Found