How do I...?

Create CD-ROM Browsing Windows

In AutoPlay Media Studio, it is possible to open a folder on a user's machine, either within your project, or in an external window (the same as double-clicking on a folder on your desktop). It is also possible to open a folder in explore view (the same as using windows explorer).

Opening a folder within your project:

  1. Create a web object, and name it Web1.

  2. Call the action Web.LoadURL:

Web.LoadURL("Web1", "C:\\");

Note: If the user does not have Internet Explorer 4.0 or later as their default browser, the folder view will be html, not windows based.

Opening a folder in an external window:

  1. Call the action File.Open:

File.Open("C:\\", "", SW_SHOWNORMAL);

Opening a folder in an explorer window:

  1. Call the action File.ExploreFolder:

File.ExploreFolder("C:\\", SW_SHOWNORMAL);

Tip: If your project is being run from the user's CD-Rom drive, and you wish to browse the CD-Rom from your autoplay application, use _SourceFolder as the path to browse/open.

Сайт управляется системой uCoz