View Full Version : Browse CD or Show CD Contents button
stereotek
08-13-2007, 12:37 PM
Hi,
As the titles says, im a trying out AutoPlay Media Studio 6.0 and need to know how to make a browse cd button, is that possible?
Kind regards
Rob
usernameCasper
08-14-2007, 01:35 PM
yes, please use the help file included in your IDE and search for "browse" without double quotes.
Sincerely,
-Casper
stereotek
08-14-2007, 03:01 PM
yes, please use the help file included in your IDE and search for "browse" without double quotes.
Sincerely,
-Casper
Sorry but em.. i dont get it.. i did search in the help file and found this:
Folder:
The path to the folder on the CD-ROM that will be explored. Click the Browse button to select a folder.
Tip: You can clear the current text from the field by right-clicking in the field and selecting Clear Text.
Run Mode
The window mode you want to use. Choose from Normal, Minimized and Maximized.
Exit after action
Exit the application after this action is performed.
But what to do, i dunno?.. can you help me out a little?
usernameCasper
08-14-2007, 03:03 PM
Use this code into a button in your application.
Example 1
files = Dialog.FileBrowse(true, "Open File", _ProgramFilesFolder, "Text File (*.txt)|*.txt|All Files(*.*)|*.*|", "", "", false, false);
Prompts the user to select a single text file in their Program Files folder, and stores the path to the file they select in a table named "files."
Note: _ProgramFilesFolder is a built-in variable that contains the path to the user's "Program Files" folder.
It's coming straight out of the help file.
Kind regards,
-Casper
Desolator
08-14-2007, 03:54 PM
No, I'm sure that he wants to open the CD drive in Windows explorer, which is done using this code:
Shell.Execute(_SourceDrive, "explore", "", "", SW_SHOWNORMAL);
Or if your application isn't on the CD, then you can replace _SourceDrive with the path to the CD drive, but to get it is a little more complex.
stereotek
08-14-2007, 04:20 PM
No, I'm sure that he wants to open the CD drive in Windows explorer, which is done using this code:
Shell.Execute(_SourceDrive, "explore", "", "", SW_SHOWNORMAL);
Or if your application isn't on the CD, then you can replace _SourceDrive with the path to the CD drive, but to get it is a little more complex.
Desolator, your the man, thats! what im looking for.. if this works out well im a happy man!
THANKS!
Desolator
08-14-2007, 05:00 PM
No problem. That's what we're here for ;)
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.