Sign in to follow this  
Followers 0
vtuls

opening daemon tools in autoit

15 posts in this topic

hi all i'm new to this forum and i have just begun with autoit :whistle:

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 tools

because 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. :)

Share this post


Link to post
Share on other sites



Instead of "daemon.exe" put the path of it and see if that works.

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

Make sure you tried it like this...... Run("C:\\Program Files\\DAEMON Tools\\daemon.exe")

Yes you have to have the double backslash.

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 ? :whistle:

Edited by Helge

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

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!

Share this post


Link to post
Share on other sites

#10 ·  Posted (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 by Helge

Share this post


Link to post
Share on other sites

have read the help file getting some where now

but still doing somthing wrong

here'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. :)

Share this post


Link to post
Share on other sites

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. :)

Share this post


Link to post
Share on other sites

have foud something that works here's the code for everybody who's interested. :whistle:

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. :)

Share this post


Link to post
Share on other sites

have foud something that works here's the code for everybody who's interested. :whistle:

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.

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."

 

WindowsError.gif

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

Share this post


Link to post
Share on other sites

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 :whistle: Beautifull - Now i can finally open mdf / img / etc with doubleclick :P

Start here if you are new Valuater's AutoIT 1-2-3Looking for an UDF - Look hereDo you need to do it twice - Autoit

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