Jump to content
Sign in to follow this  
Tyranlol

Autoit & CMD commands

Recommended Posts

Tyranlol

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]

Share this post


Link to post
Share on other sites
Calistoga

It's in the helpfile ;)

#include <Process.au3>

_RunDOS("assoc .au3=txtfile");

or

RunWait(@ComSpec & " /C " & "assoc .au3=txtfile", "", @SW_HIDE);

:blink:

Edited by Encoded

Share this post


Link to post
Share on other sites
Tyranlol

It's in the helpfile ;)

#include <Process.au3>

_RunDOS("assoc .au3=txtfile");

or

RunWait(@ComSpec & " /C " & "assoc .au3=txtfile", "", @SW_HIDE);

:blink:

Works like a charm, thank you buddy

[u]Only by Attempting the Impossible You Can Earn the Remarkable[/u]

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×