when I click the open button nothing happens

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Badger
    Forum Member
    • Jul 2004
    • 27

    when I click the open button nothing happens

    I have placed a customers web site on a cd but when I click the open button
    nothing happend the action code I used is "
    File.Open("AutoPlay\\Docs\\index.html", "", SW_SHOWNORMAL);

    and to exit I use :
    Application.Exit();
    The exit one works OK

    The only thing I can think of is the path to the index.html
    On the Cd there ate 3 files :
    Auto Play
    autorun.exe and
    autorun.inf

    The index.html file is not visavle in the Autoplay as I placed all the working files in the
    root folder. does this mean I should place all working files in the Autoplay\Docs folder to match the existing path for the index.html.?

    badger
  • JimS
    Indigo Rose Customer
    • May 2003
    • 1057

    #2
    Yes, place all the web site files in the Autoplay\Docs folder and keep the file structure of the website to keep from breaking relative links. Speaking of relative links, the links in the web site html must be relative.

    Comment

    • Badger
      Forum Member
      • Jul 2004
      • 27

      #3
      Thanks JimS

      Thanks for responding jimS

      Badger

      Comment

      • JimS
        Indigo Rose Customer
        • May 2003
        • 1057

        #4
        Let me know if you run into any problems

        Comment

        • TJ_Tigger
          Indigo Rose Customer
          • Sep 2002
          • 3159

          #5
          Have you tried File.OpenURL as well? Or open the file in a web object using Web.Load?

          Tigg
          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

          • Badger
            Forum Member
            • Jul 2004
            • 27

            #6
            Thanks

            Thanks guys I have it doing what its suposed to do now.
            Badger

            Comment

            • JimS
              Indigo Rose Customer
              • May 2003
              • 1057

              #7
              Glad you got it going!

              Comment

              Working...
              X