1.

Solve : Use a .bat file to open a database routine/menu driven system?

Answer»

Windows XP Professional, V5.1, 1 MILLION megs RAM

In Notepad I place the following text and SAVE it as a .bat file:

:: ATMS Applications
:: Links to latest version of the ATMS queries, forms, and reports
::
@echo on
copy /y C:\Documents and Settings\user\Data\Paula Axlerod.html “&temp&\ Paula Rivera.html”
start “&temp&\ Paula Axlerod.html”
cls
exit

Using the DOS commands shown above I get the following errors:

does not recognize double quotation marks" (")
can not find the file specified"
'temp' is not recognized as an internal or external command

Any help would be GREATLY appreciated.Provided temp is defined, this should work:

Code: [Select]:: ATMS Applications
:: Links to latest version of the ATMS queries, forms, and reports
::
@echo on
copy /y "C:\Documents and Settings\user\Data\Paula Axlerod.html" “%temp%\ Paula Rivera.html”
start “%temp%\ Paula Axlerod.html”
cls
exit

Those ampersands flashed me back to mainframe JCL

Note: You can also make user a replaceable variable by using %username%Sidewinder,

Thank you for your ASSISTANCE!

Brian



Discussion

No Comment Found