pleh Posted February 19, 2009 Posted February 19, 2009 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
exodius Posted February 19, 2009 Posted February 19, 2009 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.
PsaltyDS Posted February 19, 2009 Posted February 19, 2009 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
pleh Posted February 19, 2009 Author Posted February 19, 2009 Welcome to the Forum!What you want to accomplish can be done with these equivalent functions:echo = MessageBoxNet 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
b1naryatr0phy Posted February 20, 2009 Posted February 20, 2009 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")
AdmiralAlkex Posted February 20, 2009 Posted February 20, 2009 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. .Some of my scripts: ShiftER, Codec-Control, Resolution switcher for HTC ShiftSome of my UDFs: SDL UDF, SetDefaultDllDirectories, Converting GDI+ Bitmap/Image to SDL Surface
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