undefined variable for return variable in Run Program
Posted: Fri Feb 03, 2012 9:39 am
Hi:
I assigned a Run Program to get the result into a variable, then make a compare after that. However, it issues an undefined variable error during compiling.
Run Program sc.exe create "CFS" start= auto binPath= "$TARGETDIR$\Service.exe" obj= $USERDOMAIN$\CFS password= $PWRINPUT$ (WAIT, get result into variable CFSRESULT)
if Variable CFSRESULT Equals 0
MessageBox: INFORMATION, Inside: $CFSRESULT$
end
Is there anything that I should do to fix it?
Also, the $CFSRESULT$ always returns the same value (1) no matter the password is wrong or right and the service is created. When I test the "sc.exe create" command at MS-DOS, it won't be able to create a service if the password is wrong. Anyone has any idea?
Thanks
Nhan
I assigned a Run Program to get the result into a variable, then make a compare after that. However, it issues an undefined variable error during compiling.
Run Program sc.exe create "CFS" start= auto binPath= "$TARGETDIR$\Service.exe" obj= $USERDOMAIN$\CFS password= $PWRINPUT$ (WAIT, get result into variable CFSRESULT)
if Variable CFSRESULT Equals 0
MessageBox: INFORMATION, Inside: $CFSRESULT$
end
Is there anything that I should do to fix it?
Also, the $CFSRESULT$ always returns the same value (1) no matter the password is wrong or right and the service is created. When I test the "sc.exe create" command at MS-DOS, it won't be able to create a service if the password is wrong. Anyone has any idea?
Thanks
Nhan