Sign in to follow this  
Followers 0
pleh

autoit and cmd commands

6 posts in this topic

hi all.

i am autoit newbie ,but i'm lovin' it.

i have a question,is possible to import cmd commands in autoit ?

for example i have this code

@ECHO OFF
BREAK OFF
title adding users
color 0a
cls
net user demouser demopassword /add
echo done!

i want convert is to autoit format and make executable.

how do i make this?

regards pleh

Share this post


Link to post
Share on other sites



hi all.

i am autoit newbie ,but i'm lovin' it.

i have a question,is possible to import cmd commands in autoit ?

for example i have this code

@ECHO OFF
BREAK OFF
title adding users
color 0a
cls
net user demouser demopassword /add
echo done!

i want convert is to autoit format and make executable.

how do i make this?

regards pleh

Welcome to the Forum!

What you want to accomplish can be done with these equivalent functions:

echo = MessageBox

Net User demouser demopassword /add (you'll actually use this with the RunWait command)

Check out these functions in the Help File, and post what you come up with, we'll be happy to help. :)

Share this post


Link to post
Share on other sites

hi all.

i am autoit newbie ,but i'm lovin' it.

i have a question,is possible to import cmd commands in autoit ?

for example i have this code

@ECHO OFF
BREAK OFF
title adding users
color 0a
cls
net user demouser demopassword /add
echo done!

i want convert is to autoit format and make executable.

how do i make this?

regards pleh

Have you looked at the Run() and RunWait() functions yet...?

The help file is your friend.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Welcome to the Forum!

What you want to accomplish can be done with these equivalent functions:

echo = MessageBox

Net User demouser demopassword /add (you'll actually use this with the RunWait command)

Check out these functions in the Help File, and post what you come up with, we'll be happy to help. :)

i want to make executable, which will create user ''demouser'' with password ,,demopassword'' on all computers where i run this file :)

yes,this is simple,but not for me.

tnx for replaying.

Have you looked at the Run() and RunWait() functions yet...?

The help file is your friend.

^_^

10X .

i will read it :huh2:

Share this post


Link to post
Share on other sites

So you want to do away with the .bat completely and convert all to autoit? Its not necessary, you could simply put the .bat in the same dir as the script/exe and use:

Run(@ScriptDir & "\example.bat")

Share this post


Link to post
Share on other sites

So you want to do away with the .bat completely and convert all to autoit? Its not necessary, you could simply put the .bat in the same dir as the script/exe and use:

Run(@ScriptDir & "\example.bat")
Why have two files when you could have 1? Your idea is nothing more than a waste of hdspace, cpu cycles, memory and probably a lot of other things.

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