View Full Version : Help me to run an .exe file in a CD
123qwe123qwe123qwe
02-12-2009, 09:26 AM
Hello ;)
I'd like to run an .exe file in a cd, by clicking on a button which I created in a page
how can I do that?
your appropriate response is highly appreciated
cdlink14
02-12-2009, 10:08 AM
Add
Shell.Execute("AutoPlay\\test 01.exe", "open", "", "", SW_SHOWNORMAL, false);
to the button's " on-click event.
Change "AutoPlay\\test 01.exe" To point to the .exe file.
Example .apz included ( Please note the example.exe file included is just a self-extracting rar file containing a blank notepad document. )
123qwe123qwe123qwe
02-12-2009, 11:01 AM
Add
Shell.Execute("AutoPlay\\test 01.exe", "open", "", "", SW_SHOWNORMAL, false);
to the button's " on-click event.
Change "AutoPlay\\test 01.exe" To point to the .exe file.
Example .apz included ( Please note the example.exe file included is just a self-extracting rar file containing a blank notepad document. )
thanks dear friend
but you know both files destinations are a compact disk
how can I point the button at an .exe file which is on a compact disk ?
thanks again :yes
cdlink14
02-12-2009, 11:14 AM
thanks dear friend
but you know both file destinations are a compact disk
how can I point the button at an .exe file which is on a compact disk ?
thanks again :yes
If your project is going to be on a disk as well... Then copy the .exe files into the autoplay directory and use it that way.
If your app isn't going to be on that same disk. Then you need a way to retrieve the drive letter and then add the directory as a suffix.
Try something more like this:
123qwe123qwe123qwe
02-12-2009, 02:09 PM
If your project is going to be on a disk as well... Then copy the .exe files into the autoplay directory and use it that way.
If your app isn't going to be on that same disk. Then you need a way to retrieve the drive letter and then add the directory as a suffix.
Try something more like this:
Thanks dear cdlink14 to have helped me so far
May God bless you
In fact, this is the usual way to copy the .exe file into this directory “AutoPlay\ doc"
I’m looking for a way that by clicking the button, it runs the app from the compact disk
In a way that it doesn’t need to have the app in the main directory
123qwe123qwe123qwe
02-13-2009, 03:37 AM
:huh......
123qwe123qwe123qwe
02-14-2009, 08:28 AM
http://emoticons.kahthong.com/sites/default/files/emoticons/little-girls/21.gif
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.