Announcement

Collapse
No announcement yet.

How to open folder on CD

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to open folder on CD

    I'm new to this program. I started to make an AutoRun CD. I want it to be similar to a CD you would get with a motherboard, providing several programs, browse the CD, etc... I put the program folders in the Distribution folder, since that it what I understood to do. The window that appears when the Autorun starts, has buttons on side. I was able to make the buttons link to the appropriate .exe files. The problem I'm having is that instead of installing a program, there is two folders that I just want the folder to open. Also, if I added a Browse CD button, I can not seem to find the command to make that happen. Any help would be appreciated. Thanks!
    Tommy

  • #2
    Re: How to open folder on CD

    For the button that you want to use to browse the CD put the actions File.Open (explore, "%SrcDir%\foldername").

    When you use the File.Open action you will want to change the Verb from Open (the default) to Explore.

    The %SrcDir%\foldername will be the folder name on the CD that you want to explore.

    This will open the folder in a windows explore dialog box.

    There is another way that this can be accomplished with List boxes if you want a more integrated look, but the above described method works well.

    HTH
    Tigger
    TJ-Tigger
    "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
    "Draco dormiens nunquam titillandus."
    Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

    Comment


    • #3
      Re: How to open folder on CD

      I tried what you said, but I must being doing something wrong. I get the error message "Error opening file. File not found." I have five folders in my Distribution folder. I want to be able to see all folders in a windows dialog box. Here is the line I added. It points to the hard drive at the moment since that is where the files are.

      explore, %C:\Documents and Settings\Tman\My Documents\AutoPlay Media Studio Projects\Test%\Distribution

      I did change the Verb to explore. The Distribution folder is in the Test folder. Thanks for answering so quickly.

      Comment


      • #4
        Re: How to open folder on CD

        Is this the actual text you have in the File.Open action?

        explore, %C:\Documents and Settings\Tman\My Documents\AutoPlay Media Studio Projects\Test%\Distribution

        There is a variable %SrcDir% that will point to the Source Directory of the application.

        If you have the statement above you could try a few things either remove the % signs or replace the %C:\ . . .% with %SrcDir%.

        If you want to you can post the .am4 file and I can have a look.

        Tigger
        TJ-Tigger
        "A common mistake that people make when trying to design something completely foolproof was to underestimate the ingenuity of complete fools."
        "Draco dormiens nunquam titillandus."
        Map of IR Forum Users - IR Project CodeViewer - Online Help - TiggTV - QuizEngine

        Comment


        • #5
          Re: How to open folder on CD

          Thanks Tigger for the extra reply. After reading your second message, I realize I had way too much in the line. I simply put

          %SrcDir% and put explore for the verb

          and it did what I wanted. By getting that, I was able to do another and open just one folder. Appreciate the help. Thanks again!

          Tommy

          Comment


          • #6
            Tigger,

            I am trying to do the same thing... pop up a window to allow the user to explore a folder on the cd. I entered the text you said to enter
            File.Open (explore, "%SrcDir%\foldername")
            and when I click the button I get an error that says
            On Click, Line 1: Argument 1 must be of type string.
            When I put quotes around explore (explore > "explore") the error goes away but now nothing at all happens when I click the button.

            Robb

            Comment


            • #7
              rburn99,
              Are you using version 4 or version 5?

              Comment


              • #8
                Hi Jim,

                Sorry. I'm using version 5.

                Comment

                Working...
                X