Code: Select all
app$="C:\Windows\System32\dfrgui.exe"
Debug ShellExecute_(0,"open",app$,"",GetPathPart(app$),#SW_SHOW) ; 42
Debug RunProgram(app$) ; 1
Code: Select all
app$="C:\Windows\System32\dfrgui.exe"
Debug ShellExecute_(0,"open",app$,"",GetPathPart(app$),#SW_SHOW) ; 42
Debug RunProgram(app$) ; 1
Code: Select all
CompilerIf #PB_Compiler_Processor = #PB_Processor_x86
app$ = "C:\Windows\Sysnative\dfrgui.exe" ;Vista+
CompilerElse
app$ = "C:\Windows\System32\dfrgui.exe"
CompilerEndIf
Debug ShellExecute_(0,"open",app$,"",GetPathPart(app$),#SW_SHOW)
Debug RunProgram(app$)Nope, you get success because you successfully launch the program.BarryG wrote:Shame that I get "success" return numbers (42 and 1) despite NOT launching.