farmers1
asked on
VBscript to take the date from within a DAT file and insert into a batch file!
I need a script to take the date from within a DAT file say "08/05/2008"
and use that date inside of the batch file below,whatever date is in the dat file i need to use in the bat file!
"c:\program files\ips\pro\pro.exe" OpenWindow[30062,TEST,08/0 5/2008] Authentication[P] AppUserID[admin] AppPassword[Abc] DBProfile[Prologue] AutoLogin[]
and use that date inside of the batch file below,whatever date is in the dat file i need to use in the bat file!
"c:\program files\ips\pro\pro.exe" OpenWindow[30062,TEST,08/0
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
How about right in your batch file?
for /f %%a in ("FILENAME.DAT") do for /f "delims= " %%c in ("%%~ta") do "c:\program files\ips\pro\pro.exe" OpenWindow[30062,TEST,%%c] Authentication[P] AppUserID[admin] AppPassword[Abc] DBProfile[Prologue] AutoLogin[]
for /f %%a in ("FILENAME.DAT") do for /f "delims= " %%c in ("%%~ta") do "c:\program files\ips\pro\pro.exe" OpenWindow[30062,TEST,%%c]
ASKER
Thanks this worked good,just what i needed!
Open in new window