hi guys,
What is the difference between run and shellexecute ?
I have a program which call another exe file.
And it works since many years with run command.
$path = "d:\barre.exe"
$path &= " Lanceur" ; A parameter for the exe.
Run($path, @TempDir, @SW_MAXIMIZE) ;
If @error Then
consolewrite("erreur de lancement de " & $path & " erreur:" & @error & " @TempDir: " & @TempDir & @CRLF)
shellExecute("d:\barre.exe" , "Lanceur")
If @error Then
consolewrite("erreur de lanceemnt de ShellExecute" & $path & " erreur:" & @error & @CRLF)
EndIf
endif
Today, for only one user, (on near 150 / 200) the program called doesn't start at all.
The run command is on error, so i tried with shellexecute and it works well.
My main program is launch by many users, it select and find the binary for the second program, copy it on the user computer, and run it locally (d:\barre.exe).
It works well since a very long time. Barre.exe is a toolbar, so with a gui.
I really don't explain this problem.
the folder where is the program is accessible for the user, with full rights, and @tempdir is ok too.
Any ideas ?
Thanks,
Nicolas