This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- how to handle & symbol in LaunchAppAndWait
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 07, 2016
08:54 AM
how to handle & symbol in LaunchAppAndWait
hi folks,
I am executing a command using LaunchAppAndWait, in command line I am using password which is entred by the user. if the password contains "&" symbol e.g. Abcde&1234 command execution is failing, im getting the output as " operation Failed with user provided password
'1234' is not recognized as an internal or external command,"
my code is as follows, how to handle & symbol.
'I get the value of szLBPwd during installation
'szAppPath is executable binary path
szCmd = "";
szCmd = " -abcd -password " + szLBPwd + " abc -xyz > output.log 2>&1";
nRes = LaunchAppAndWait(svCmdPath ^ "cmd","/C " + szAppPath + szCmd, LAAW_OPTION_WAIT | LAAW_OPTION_HIDDEN);
nReturnCode = NULL;
nReturnCode = LAAW_PARAMETERS.nLaunchResult;
best regards
phanik
I am executing a command using LaunchAppAndWait, in command line I am using password which is entred by the user. if the password contains "&" symbol e.g. Abcde&1234 command execution is failing, im getting the output as " operation Failed with user provided password
'1234' is not recognized as an internal or external command,"
my code is as follows, how to handle & symbol.
'I get the value of szLBPwd during installation
'szAppPath is executable binary path
szCmd = "";
szCmd = " -abcd -password " + szLBPwd + " abc -xyz > output.log 2>&1";
nRes = LaunchAppAndWait(svCmdPath ^ "cmd","/C " + szAppPath + szCmd, LAAW_OPTION_WAIT | LAAW_OPTION_HIDDEN);
nReturnCode = NULL;
nReturnCode = LAAW_PARAMETERS.nLaunchResult;
best regards
phanik
(1) Reply
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 12, 2016
09:58 AM
This is probably relevant to your issue:
http://stackoverflow.com/questions/1327431/how-do-i-escape-ampersands-in-batch-files
HTH
