cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
loveflower
Level 2

something about LaunchAppAndWait()

i want to use this function to launch another application, but i meet some troubles in the path of the app.
what can szCmdLine be?

follows some script:
szCmdLine =SUPPORTDIR^"AUTORUN.EXE";
SETUPINI_DIR =SUPPORTDIR^"AUTORUN.INI";
LongPathToShortPath(szCmdLine);
if (LaunchAppAndWait( szCmdLine ," " , WAIT) < 0) then
MessageBox("SQL 2000 install error",WARNING)
Labels (1)
0 Kudos
(1) Reply
J_anitha
Level 8

Why is LongPathToShortPath() required there?
Try removing that and using LongPathToQuote(szCmdLine, TRUE); instead.
0 Kudos