Difference between Run() and ShellExecute()
问题 I want to execute something in a shell/terminal on Windows via AutoIt. And I know that there are two ways of doing it. For example: Run(@ComSpec & " /c " & $myCommand, "", @SW_HIDE) ;and ShellExecute($myCommand) I don't understand the difference; both functions will do what I want, but what's behind them? Which pros and cons do they have? 回答1: Run() is used to fire off executable files only. It requires the full path of the program. ShellExecute() also accepts content files like .txt, .htm