<html><head></head><body><span id="result_box" class="" tabindex="-1" lang="en">Hello,<br>I need to run a program from another program.<br>I first used "Shell":<br><br>sArgs = Shell$(sArgument1) & " " & Shell$(sArgument2)<br>hdlProcess = Shell "MyProg " & sArgs<br><br>everything is working properly and I find in the MyProg code,<br>Args.Count = 3:<br>Args[0] is equal to Application.Name<br>Args[1] is equal to sArgument1<br>Args[2] is equal to sArgument2<br><br>If I'm using DesktopFile.RunExec() :<br>sArgs = Shell $ (sArgument1) & "" & Shell $ (sArgument2)<br>hdlProcess = DesktopFile.RunExec ("MyProg", sArgs)<br>there a difference<br>Args.Count = 2<br>Args[0] is equal to Application.Name<br>Args[1] is equal to sArgument1 & "" & sArgument2<br><br>Which command should I prefer?<br><span class="">Shell or DesktopFile.RunExec ()</span><br><br><span class="">Regards</span></span></body></html>