bryangoyett Posted February 17, 2009 Posted February 17, 2009 (edited) Ok so i have a .Cmd that i wrote that i want to rewrite in AutoIt and convert it to an exe. How would i go about doing that? It also relies on dlls that need to stay with it.. Any help would be nice Edit: I can supply the file if needed. Edited February 17, 2009 by bryangoyett
Prab Posted February 17, 2009 Posted February 17, 2009 Start off by reading the help file. In particular, look at run command. Using that you can directly copy and paste lines from you .bat file. To compile it to an exe, right click on the .au3 file and there should be an option to compile. To make sure that you bring along certain .dll's, look into the fileInstall command. It may do what you want. FolderLog GuiSpeech Assist
bryangoyett Posted February 17, 2009 Author Posted February 17, 2009 (edited) My batch file, its simple.. Regsvr32 /S %PROCESSOR_ARCHITECTURE%\AX.DLL AutoIt file so far Run ("AX.Bat" ,@SW_HIDE) Now when i compile it how do i get the directories containing the .dll's to stay with it?? Or am i doing anything wrong? Edited February 17, 2009 by bryangoyett
AdmiralAlkex Posted February 17, 2009 Posted February 17, 2009 Why a batch file when you can do the same directly in AutoIt? Run(Regsvr32....... .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
bo8ster Posted February 17, 2009 Posted February 17, 2009 Run or ShellExecute should have everything you need. Post your code because code says more then your words can. SciTe Debug mode - it's magic: #AutoIt3Wrapper_run_debug_mode=Y. Use Opt("MustDeclareVars", 1)[topic="84960"]Brett F's Learning To Script with AutoIt V3[/topic][topic="21048"]Valuater's AutoIt 1-2-3, Class... is now in Session[/topic]Contribution: [topic="87994"]Get SVN Rev Number[/topic], [topic="93527"]Control Handle under mouse[/topic], [topic="91966"]A Presentation using AutoIt[/topic], [topic="112756"]Log ConsoleWrite output in Scite[/topic]
Manjish Posted February 17, 2009 Posted February 17, 2009 _RunDos.. Runwait.. ShellExecute.. Run with ' /c' switch.. or simply just run the batch file using autoit.. [font="Garamond"]Manjish Naik[/font]Engineer, Global Services - QPSHoneywell Automation India LimitedE-mail - Manjish.Naik@honeywell.com
BrettF Posted February 17, 2009 Posted February 17, 2009 Opt ("ExpandEnvStrings", 1) ShellExecute ("Regsvr32 /S %PROCESSOR_ARCHITECTURE%\AX.DLL") Vist my blog!UDFs: Opens The Default Mail Client | _LoginBox | Convert Reg to AU3 | BASS.au3 (BASS.dll) (Includes various BASS Libraries) | MultiLang.au3 (Multi-Language GUIs!)Example Scripts: Computer Info Telnet Server | "Secure" HTTP Server (Based on Manadar's Server)Software: AAMP- Advanced AutoIt Media Player | WorldCam | AYTU - Youtube Uploader Tutorials: Learning to Script with AutoIt V3Projects (Hardware + AutoIt): ArduinoUseful Links: AutoIt 1-2-3 | The AutoIt Downloads Section: | SciTE4AutoIt3 Full Version!
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