Jump to content

Run


Jammer
 Share

Recommended Posts

How can I start a program with a command line using autoit?

I need an example... i need to run hl.exe wirth command line "-console -game cstrike"

I tryed Run("hl.exe", "-console -game cstrike") and many more variants but still dont get it :lmao:

Need and example...

Link to comment
Share on other sites

How can I start a program with a command line using autoit?

I need an example... i need to run hl.exe wirth command line "-console -game cstrike"

I tryed Run("hl.exe", "-console -game cstrike") and many more variants but still dont get it :lmao:

Need and example...

<{POST_SNAPBACK}>

Ok, re-read the help file on the "RUN()" command. What you're telling it to do is use "-console -game cstrike" as the working directory.

Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Link to comment
Share on other sites

Ok, re-read the help file on the "RUN()" command.  What you're telling it to do is use "-console -game cstrike" as the working directory.

<{POST_SNAPBACK}>

I did something like this

$workingdir = "c:/whatever"
$exe = $workingdir & "/" & "hl.exe -console -game cstrike"

 Run($exe, $workingdir)
Link to comment
Share on other sites

how about this, its how i always do command line

Run ( 'hl.exe "-console" "-game cstrike"' )

i hope that helps :lmao:

[font="Times"] If anyone remembers me, I am back. Maybe to stay, maybe not.----------------------------------------------------------------------------------------------------------[/font][font="Times"]Things I am proud of: Pong! in AutoIt | SearchbarMy website: F.R.I.E.S.A little website that is trying to get started: http://thepiratelounge.net/ (not mine)[/font][font="Times"] ----------------------------------------------------------------------------------------------------------[/font][font="Arial"]The newbies need to stop stealing avatars!!! It is confusing!![/font]

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...