PDA

View Full Version : Brose CD Contents..cripes


roattw
12-15-2003, 02:48 PM
Havent used this program since 3.0. I use it simply to make menus for document CD. On autostart screen there is the typical "CLOSE" and "BROWSE CD" buttons.

I cant get it to set to browse the CD root folder, always goes to my computers My Documents. Have tried _SourceFolder etc. also used Dialog.Folder and File Open.

Missing something basic here that was easier in 3.0 ;^)

thanks

Would prefer a direct email to: todd.roat@uc.edu if psosible.

Ted Sullivan
12-15-2003, 05:07 PM
1. To add "Close" functionality, either use the Add Action Wizard to add an "Application.Exit" action to your button's "On Click" event or simply type in the following script:
Application.Exit();
2. To add "BROWSE CD" functionality, either use the Add Action Wizard to add a "File.ExploreFolder" action to your button's "On Click" event or simply type in the following script:
File.ExploreFolder(_SourceFolder, SW_SHOWNORMAL);
That will open up the folder that the "autorun.exe" is being executed from. You have full control over which folder to browse though, by simply changing the Path argument.

Check out the command reference for more examples and further details.

http://www.indigorose.com/webhelp/ams50/Program_Reference/Actions/File.ExploreFolder.htm

roattw
12-16-2003, 06:52 AM
Thanks for the reply Ted. Still having issues. Using that code keeps opening to My Documents, not where my defined AutoPlay folder is. I got it to work using Src.Dir, a statment I must have had notes on from version 3.0. I must be doing something obviously wrong and will try again when I have time to attempt carefully tomorrow. I will keep you posted.

Ted Sullivan
12-16-2003, 10:42 AM
My guess is that you're running the .exe from your "My Documents" folder, which is why the _SourceFolder variable is showing that location. Have you tried publishing to a CD?