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 LikedSort ByMost LikedOldestNewestquessevOccasional 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 DiscussionsFilter Traceability Report with test execution resultsCalling all software developers and testers!Silent install of Testexecute with credentialsSolved
Related ContentAQTime Delphi 11.X SupportOrd function in delphi script (TC 6.52)Delphi Split function