Jump to content

Opening programs with other programs i.e. Daemon Tools


Recommended Posts

Hello passerbys. I want to make a program for my family because they don't understand computer very well. I'd like to make a program to mount Daemon Tools Images to a certain drive. Is there a way to do this?

I tried using shellexecute as such:

$path = "I:\stuff I put on\Games\Console Games\Sega Saturn Roms\Dragon Force"
$name = "DRAGON_FORCE.CUE"
ShellExecute($name,"",$path,"Daemon Tools Pro")

The reason I tried this is because I have Daemon Tools installed in a way that it appears in the shell menu of certain files when you right click on them.

Is this possible?

Link to comment
Share on other sites

I just figured it out. No worries guys. For those that would also like to know. The best method that I found was not using shellexecute, but rather runwait(). The only thing is that you have to find out the command line usage first.

Here's the code that I used:

$command = '"I:DAEMON Tools ProDTAgent.exe" -mount scsi, 0,"I:GamesConsole GamesSega Saturn RomsDragon ForceDRAGON_FORCE.CUE"'
RunWait($Command,"",@SW_HIDE)

The command line usage I found here:

http://daemonpro-help.com/windows_integration/command_line_integration.html

Link to comment
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
 Share

×
×
  • Create New...