Noviceatthis Posted March 19, 2013 Share Posted March 19, 2013 Hello all Is it possible to open cmd.exe from a specific location?? Whenever I shellexecute the CMD from my autoit script, it opens it from the location of the script thanks Link to comment Share on other sites More sharing options...
JohnOne Posted March 19, 2013 Share Posted March 19, 2013 I'm not 100% but I think FileChangeDir() AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Noviceatthis Posted March 19, 2013 Author Share Posted March 19, 2013 thanks JohnOne, i'l give that a try Link to comment Share on other sites More sharing options...
Noviceatthis Posted March 19, 2013 Author Share Posted March 19, 2013 FileChangeDir("C:\Windows\System32") ShellExecute("cmd") Works like a charm Thanks again Link to comment Share on other sites More sharing options...
JohnOne Posted March 19, 2013 Share Posted March 19, 2013 Probably be a little more portable if. FileChangeDir(@SystemDir) ShellExecute("cmd") AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Noviceatthis Posted March 19, 2013 Author Share Posted March 19, 2013 Very good point 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