quessevOccasional Contributor12 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 Contributor12 years agoSorry for the noise.Sys.OleObject('WScript.Shell').Run('"C:\Program Files\Company \exec.exe" option1 "option2"');works fine.
quessevOccasional Contributor12 years agoSorry for the noise.Sys.OleObject('WScript.Shell').Run('"C:\Program Files\Company \exec.exe" option1 "option2"');works fine.
Related ContentAQTime Delphi 11.X SupportDelphi App SupportOrd function in delphi script (TC 6.52)iterating delphi stringgrid in testcompleteDelphi Split function
Recent DiscussionsUnbinding a project suite from source controlhow to use Random Data every time you run a TCChrome/Edge Extension not always working... why?Issues with dropdowns and ClickItem() not working if the dropdown opens in the up directionSolvedProject error stopping execution