Windows XP Batch File with User Input question
Posted: 22 May 2007 09:57
I am trying to write a batch file for use in Windows XP.
Here is the current Batch file (9005.bat) I need to modify:
CD\
CD..
cd Temp Data Files
cd Raw Data
del LEXALL
del LEXALL.out
rename LEXALL.txt LEXALL.
9005LEX.EXE
We have re-written our download programs to add a number in-front of the file name (i.e. LEXALL is now: 1234567_LEXALL.txt). since we run this Batch file for multiple reports.
I need to rename this file from: 1234567_lexall.txt to lexall.
since the number changes with each report, it should be a user input for the variable:
The Number 1234567 (Variable) will need to be input every time the program runs (as the number will be different.
Does anybody have any ideas?
Any and all suggstions will be welcome.
Here is the current Batch file (9005.bat) I need to modify:
CD\
CD..
cd Temp Data Files
cd Raw Data
del LEXALL
del LEXALL.out
rename LEXALL.txt LEXALL.
9005LEX.EXE
We have re-written our download programs to add a number in-front of the file name (i.e. LEXALL is now: 1234567_LEXALL.txt). since we run this Batch file for multiple reports.
I need to rename this file from: 1234567_lexall.txt to lexall.
since the number changes with each report, it should be a user input for the variable:
The Number 1234567 (Variable) will need to be input every time the program runs (as the number will be different.
Does anybody have any ideas?
Any and all suggstions will be welcome.