Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Capturing file name in a parameter  (Read 10834 times)

0 Members and 1 Guest are viewing this topic.

borencl

  • Guest
Capturing file name in a parameter
« on: June 09, 2004, 05:05:05 PM »
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!