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
Professional Software Development Tools
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
Add
to the button's " on-click event.Code:Shell.Execute("AutoPlay\\test 01.exe", "open", "", "", SW_SHOWNORMAL, false);
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. )
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
......