For some reason the RUN command isn't running the specified application. Can anyone see any flaws in my code?
cDB = "FOR"
cTFile = "c:\test\file.t"
cXFile = "C:\Program Files\myapp.exe"
cProgPath = cXFile + " -q -r " + cTFile + " " + cDB + " LIVE"
run &cProgPath
The command window closes immediately after it opens. I used the same cProgPath string to run the program from a DOS prompt and through a VB application using the Shell() function and had no problems. Thanks for the help.
cDB = "FOR"
cTFile = "c:\test\file.t"
cXFile = "C:\Program Files\myapp.exe"
cProgPath = cXFile + " -q -r " + cTFile + " " + cDB + " LIVE"
run &cProgPath
The command window closes immediately after it opens. I used the same cProgPath string to run the program from a DOS prompt and through a VB application using the Shell() function and had no problems. Thanks for the help.