Home / Microsoft / Microsoft DOS / Capturing file name in a parameter
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] - (Bottom) Print
Author Topic: Capturing file name in a parameter  (Read 2722 times)
borencl
Guest
« 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!
IP logged
Pages: [1] - (Top) Print 
Home / Microsoft / Microsoft DOS / Capturing file name in a parameter « previous next »
 


Login with username, password and session length

Old Forum Search | Forum Rules
Copyright © 2010 Computer Hope ® All rights reserved.
Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC
Page created in 0.078 seconds with 18 queries.