Hello, this is the section where I build scripts in a Custom IDE. I pull and action like delete file and the tool adds the corresponding lines of code.
However, I need to tweak this code in order to perform an execute actoin twice.
===========================================================
Sub ExecutePowerUser(Pub, Act)
Act.ReturnValue = 0
exe = "C:\Windows\Notepad.exe"
args = ""
wait = TRUE
WriteLog("Executing "exe)
retVal = RunCommand(exe, args, wait)
WriteLog(error executing "&exe& "args")
writelog("retval: "&retval)
StopServices = False
Enf If
End sub
Sub ExecutePowerUser2(Pub, Act)
Act.ReturnValue = 0
exe = "C:\Windows\Some other.exe"
args = ""
wait = TRUE
WriteLog("Executing "exe)
retVal = RunCommand(exe, args, wait)
WriteLog(error executing "&exe& "args")
writelog("retval: "&retval)
StopServices = False
Enf If
End sub
===========================================================
Thanks!