Tyranlol Posted July 29, 2010 Share Posted July 29, 2010 Hello Is there any easy way to run CMD commands in Autoit ? for example assoc .au3=txtfile and so on. Thanks in advance [u]Only by Attempting the Impossible You Can Earn the Remarkable[/u] Link to comment Share on other sites More sharing options...
Solution Calistoga Posted July 29, 2010 Solution Share Posted July 29, 2010 (edited) It's in the helpfile #include <Process.au3> _RunDOS("assoc .au3=txtfile"); or RunWait(@ComSpec & " /C " & "assoc .au3=txtfile", "", @SW_HIDE); Edited July 29, 2010 by Encoded Link to comment Share on other sites More sharing options...
Tyranlol Posted July 29, 2010 Author Share Posted July 29, 2010 It's in the helpfile #include <Process.au3> _RunDOS("assoc .au3=txtfile"); or RunWait(@ComSpec & " /C " & "assoc .au3=txtfile", "", @SW_HIDE); Works like a charm, thank you buddy [u]Only by Attempting the Impossible You Can Earn the Remarkable[/u] 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