We have vbscript that will shell out and exectue command that load
transaction log to SQL Anywhere. The DOS command line:
"%SQLANY10%\win32\dbeng10" E:\DbName.db -ek "EncryptionKey" -ad
"e:\TransactionLogDir" -o LogFile
Since SQLANY10 is the system var. (location where SQL Anywhere install)
when the program run we got this error:
'E:\Program' is not recognized as an internal or external
command,operable program or batch file.
We relized that SQLANY10=E:\Program Files\SQL Anywhere 10 and the
program will not run. How do we get around this issue?
LoadTransLogCmd = """%SQLANY10%\win32\dbeng10"" E:\DbName.db -ek
""EncryptionKey"" -ad ""e:\LogFilesDir"" -o E:\LogFile.txt"
RunCmd = "%comspec% /k " & LoadTransLogCmd & ""
objShell.Run(RunCmd), 1, TRUE
WScript.Quit
Best Regards,
Rachan Terrell
--
Rachan
------------------------------------------------------------------------
Rachan's Profile:
http://forums.techarena.in/members/rachan.htm
View this thread:
http://forums.techarena.in/server-scripting/1041004.htm
http://forums.techarena.in