vtuls Posted March 4, 2007 Posted March 4, 2007 hi all i'm new to this forum and i have just begun with autoit but what i'm trying to do is not so simple as i thougt.i want to make an auto install programm for my pc.that when i reinstall my sofware it takes a bit of load of of me.i have some of my files burned in to a image that i'm trying to acces with daemon toolsbecause i get the next error when i try to run the programm i would like to know what i do wrong and how to fiks this."C:\Documents and Settings\Vincent\Mijn documenten\programma\auto it tests\test.au3 (45) : ==> Unable to execute the external program.: Run("daemon.exe") "can any one help me? i hereby also post my auto script so you can help me abit more accurate.test.au3 a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :)
Abaddon Posted March 4, 2007 Posted March 4, 2007 Instead of "daemon.exe" put the path of it and see if that works.
vtuls Posted March 4, 2007 Author Posted March 4, 2007 have tried that it does'nt work either a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :)
vtuls Posted March 4, 2007 Author Posted March 4, 2007 my problem is that daemon is already on my desktop in the taskbar pressent and its accessable with the right klik on my mouse but because it is also continuously changing it position in th task bar i would like to know how to get access to the options i need? a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :)
Abaddon Posted March 4, 2007 Posted March 4, 2007 Make sure you tried it like this...... Run("C:\\Program Files\\DAEMON Tools\\daemon.exe") Yes you have to have the double backslash.
vtuls Posted March 4, 2007 Author Posted March 4, 2007 this didn't work either i'm still getting the same error. i did have a complete discription with mousemove and mouseckick, but because the icon is on a different place every time i restart my computer these don't have the effect i wanted. a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :)
Helge Posted March 4, 2007 Posted March 4, 2007 (edited) Try this...$sFile = @ProgramFilesDir & "\D-Tools\daemon.exe" If FileExists($sFile) Then Run($sFile) Else MsgBox(16, "Error", "File doesn't exist !") EndIf oÝ÷ Ù*"Ë^iÚÆ¥«¨µ*·«xéåÊ«¨·ø£ºË]¢Øb±«¢+ÙM½ÑÝÉ=¹±ä ¤@Abaddon : You don't need to have the double backslashes... Done any v2 lately ? Edited March 4, 2007 by Helge
vtuls Posted March 4, 2007 Author Posted March 4, 2007 it does work with out errors now but didn't hit the spot i some how need to replace the actions following: 1: rightklick on daemon icon in the task bar. 2: select virtual cd/dvd-rom. 3: select Device 0 : [F:\] no media 4: select mount image 5: open the file i need. a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :)
CyberSlug Posted March 4, 2007 Posted March 4, 2007 Check the Daemon Tools help file for command line options.... For example, I have the following script (compiled to an EXE) associated with ISO files. It allows me to double click an ISO, mount it as G:, and show the contents in Explorer: ; MountHelper.au3 Assumes that G: is the Daemon Tools Virtual drive... #noTrayIcon If $CmdLine[0] = 0 Then Exit FilechangeDir(@ScriptDir) RunWait('"daemon.exe" -unmount 0') RunWait('"daemon.exe" -mount 0, ' & """" & $CmdLine[1] & """") While DriveStatus("G:") = "NOTREADY" sleep(100) WEnd Run("explorer G:") Use Mozilla | Take a look at My Disorganized AutoIt stuff | Very very old: AutoBuilder 11 Jan 2005 prototype I need to update my sig!
Helge Posted March 4, 2007 Posted March 4, 2007 (edited) Well, D-Tools does take command line parameters which would make that so much easier..Edit : CS, hey..you aren't supposed to be here ! Edited March 4, 2007 by Helge
vtuls Posted March 4, 2007 Author Posted March 4, 2007 have read the help file getting some where nowbut still doing somthing wronghere's the new error i get.C:\Documents and Settings\Vincent\Mijn documenten\programma\auto it tests\test.au3 (45) : ==> Unable to parse line.: run("daemon.exe" -mount <0>,<D:\software disks\generals\C&C Generals CD1.nrg>) run("daemon.exe" -mount <0>,<D^ ERROR a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :)
vtuls Posted March 4, 2007 Author Posted March 4, 2007 have gotten rid of the last one but now have a new one C:\Documents and Settings\Vincent\Mijn documenten\programma\auto it tests\test.au3(45,78) : ERROR: syntax error run("daemon.exe -mount" "0""D:\software disks\generals\C&C Generals CD1.nrg" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :)
vtuls Posted March 4, 2007 Author Posted March 4, 2007 have foud something that works here's the code for everybody who's interested. run("C:\Program Files\D-Tools\daemon.exe -mount <0> <D:\software disks\generals\C&C Generals CD1.nrg>") have found this by accident and have now got some trouble with the daemon programm itself it gives me the following message"Mount Switch Syntax ERROR" does sombody know what is ment bij this and how to solve this problem? a badly written code is better than a unwritten onea good written code is even better.but there is always room for improvement. :)
nitekram Posted March 4, 2007 Posted March 4, 2007 have foud something that works here's the code for everybody who's interested. run("C:\Program Files\D-Tools\daemon.exe -mount <0> <D:\software disks\generals\C&C Generals CD1.nrg>") have found this by accident and have now got some trouble with the daemon programm itself it gives me the following message"Mount Switch Syntax ERROR" does sombody know what is ment bij this and how to solve this problem?normally, when programming, if you get an error that says something about syntax you may want to look at the command and how it should be called, i.e. read the example of the action that you want to perform and then copy that into your program and change the settings to match your needs. 2¢ All by me:"Sometimes you have to go back to where you started, to get to where you want to go." "Everybody catches up with everyone, eventually" "As you teach others, you are really teaching yourself." From my dad "Do not worry about yesterday, as the only thing that you can control is tomorrow." WIKI | Tabs; | Arrays; | Strings | Wiki Arrays | How to ask a Question | Forum Search | FAQ | Tutorials | Original FAQ | ONLINE HELP | UDF's Wiki | AutoIt PDF AutoIt Snippets | Multple Guis | Interrupting a running function | Another Send StringRegExp | StringRegExp Help | RegEXTester | REG TUTOR | Reg TUTOT 2 AutoItSetOption | Macros | AutoIt Snippets | Wrapper | Autoit Docs SCITE | SciteJump | BB | MyTopics | Programming | UDFs | AutoIt 123 | UDFs Form | UDF Learning to script | Tutorials | Documentation | IE.AU3 | Games? | FreeSoftware | Path_Online | Core Language Programming Tips Excel Changes ControlHover.UDF GDI_Plus Draw_On_Screen GDI Basics GDI_More_Basics GDI Rotate GDI Graph GDI CheckExistingItems GDI Trajectory Replace $ghGDIPDll with $__g_hGDIPDll DLL 101? Array via Object GDI Swimlane GDI Plus French 101 Site GDI Examples UEZ GDI Basic Clock GDI Detection Ternary operator
Shevilie Posted March 5, 2007 Posted March 5, 2007 Check the Daemon Tools help file for command line options.... For example, I have the following script (compiled to an EXE) associated with ISO files. It allows me to double click an ISO, mount it as G:, and show the contents in Explorer: ; MountHelper.au3 Assumes that G: is the Daemon Tools Virtual drive... #noTrayIcon If $CmdLine[0] = 0 Then Exit FilechangeDir(@ScriptDir) RunWait('"daemon.exe" -unmount 0') RunWait('"daemon.exe" -mount 0, ' & """" & $CmdLine[1] & """") While DriveStatus("G:") = "NOTREADY" sleep(100) WEnd Run("explorer G:") Argh goddammit thanks - I've tried to integrate all the types of images in deamontools and for somehow I never thought of doing it like this Beautifull - Now i can finally open mdf / img / etc with doubleclick Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit
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