Sign in to follow this  
Followers 0
gamer1

commandline

5 posts in this topic

#1 ·  Posted (edited)

Hi!

I'm wondering how to run a single script line without a script?

Saw this feature was added in version 2.60 (14/05/2001) on this page here (use find /c).

Well the /c commandline switch doesn't seem to work for me with AutoIt3.exe

For example how do I run this single script line without a script?:

IniWrite("C:\boot.ini","boot loader","timeout","4")

Autoit3.exe /c "WinWait, Untitled - Notepad" - like the example doesn't work.

Thanks!

Edited by gamer1

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

v2 and v3 are two completely different languages, so looking at the changelog for v2 when you're

using v3 is just...stupid. If you had taken a look at the v3-history instead you would've found out

that "/C" was changed to "/AutoIt3ExecuteLine" some time ago.

Edited by Helge

Share this post


Link to post
Share on other sites

"C:\Program Files\AutoIt3\AutoIt3.exe" /AutoIt3ExecuteLine "IniWrite('C:\boot2.ini','boot loader','timeout','6')"

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Senile and too slow:

"C:\Program Files\AutoIt3\AutoIt3.exe" /AutoIt3ExecuteLine "MsgBox(0, '','')"

it took me that long to test it out :-)

Edit - but I did take the time to install the latest prod version before testing/posting :-)

Edited by herewasplato

[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

I was googling that's why I got the old v2 changelog.. Anyway Thanks for the fast help!

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  
Followers 0