I want to run few commands that successfully run on the Command Prompt console. However when I try to execute them using AutoIT, it doesn't seem to work.
#RequireAdmin
RunWait(@ComSpec & "SET ABC=C:\Some\Folder","",@SW_MAXIMIZE)
RunWait(@ComSpec & "SET DEF=\\Server\Shared\Path","",@SW_MAXIMIZE)
RunWait(@ComSpec & " /c " & "%DEF%\File.bat","",@SW_MAXIMIZE)
RunWait(@ComSpec & "ping google.com","",@SW_MAXIMIZE)
Also, how do I get the output