quessevOccasional Contributor13 years agoHow to use WScript.Shell in Delphi ScriptsHello,I am unable to use WScript.Shell to run a command whose name contains spaces.It works fine using short notation. What is the syntax to quote correctly?Sys.OleObject('WScript.Shell').Run('C:\Progra~1\Compan~1\exec.exe option1 option2');
1 ReplyReplies sorted by Most LikedquessevOccasional Contributor13 years agoSorry for the noise.Sys.OleObject('WScript.Shell').Run('"C:\Program Files\Company \exec.exe" option1 "option2"');works fine.
quessevOccasional Contributor13 years agoSorry for the noise.Sys.OleObject('WScript.Shell').Run('"C:\Program Files\Company \exec.exe" option1 "option2"');works fine.
Recent DiscussionsLatency and Device Disconnect Issues in Test Complete Mobile TestingUnable to activate floating license.SolvedTestcomplete closed itself
Related ContentAQTime Delphi 11.X SupportOrd function in delphi script (TC 6.52)Delphi Split function