baboulinet Posted March 12, 2013 Share Posted March 12, 2013 Hello all I'm working on an apps that make synchronise system clock with internal clock form industrial robot. i have made a script that take in arguments some strings (ex : test.vbs YEAR DAY MONTH ) and synchronise windows XP's clock. i test it directly in command's shell and it works perfectly. On DF (ver: 5.84), with System.ShellExecute, i call my script like that : system.ShellExecute("d:\test.vbs","open",EtatComAUT20 EtatComAUT22 EtatComAUT21 ,"","") [/CODE]where EtatComAUT20 is YEAR, EtatComAUT21 is DAY, EtatComAUT22 is MONTHIn my output, i receive test.vbs EtatComAUT20 EtatComAUT22 EtatComAUT21 EtatComAUT23 instead of test.vbs 2013 15 02How can i get the values of variables instead of the name of them?Where i was wrong ?Thx for your support Link to comment Share on other sites More sharing options...
AzeoTech Posted March 12, 2013 Share Posted March 12, 2013 private string params = doubleToStr(EtatComAUT20) + " " + doubleToStr(EtatComAUT22) + " " + doubletostr(EtatComAUT21) system.shellexecute("d:\test.vbs", "open", params) Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.