GameDad3 Posted April 16, 2007 Share Posted April 16, 2007 Hi, I am brand new to scripting and AutoIT. I am attempting to use @SystemDir in a run command and chain a filename (& possibly a folder) to it. The line I'm trying to use is: Run("mmc","C:\Build",/o," " & @SystemDir & "\" & services.msc) The result is: C:\Build\MyScript.au3 (13) : ==> Error parsing function call.: Run("mmc","C:\Build",/o," " & @SystemDir & "\" & services.msc) Run("mmc","C:\Build",/^ ERROR >Exit code: 0 Can I use this command to launch Mmc.exe? What is the proper syntax to chain a Directory Macro with a folder & filename? Is there a better way to do this? Any help is appreciated. Link to comment Share on other sites More sharing options...
evilertoaster Posted April 16, 2007 Share Posted April 16, 2007 Run(@SystemDir & "\mmc.exe "& @SystemDir & "\services.msc") Link to comment Share on other sites More sharing options...
GameDad3 Posted April 16, 2007 Author Share Posted April 16, 2007 Run(@SystemDir & "\mmc.exe "& @SystemDir & "\services.msc") Guess I complicated it a bit! Thx Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now