Open files

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • shaiful
    New Member
    • Oct 2007
    • 89

    Open files

    Hi all, I have a problem that "How to open files from any particaular directory?" I mean just I wanna to press button then autometically will open all files from directory one by one, Thanks in Advance
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    Originally posted by shaiful
    Hi all, I have a problem that "How to open files from any particaular directory?" I mean just I wanna to press button then autometically will open all files from directory one by one, Thanks in Advance
    A couple of questions...
    • What version of VB?
    • What do you mean exactly by "open"? Do you mean the same as if you selected them in Windows Explorer and hit "Open"?

    Comment

    • shaiful
      New Member
      • Oct 2007
      • 89

      #3
      Hello, my VB 6.0
      and open means just veiw the all files one by one from selected one directory, Thx very much.

      Comment

      • Killer42
        Recognized Expert Expert
        • Oct 2006
        • 8429

        #4
        Originally posted by shaiful
        Hello, my VB 6.0
        and open means just veiw the all files one by one from selected one directory, Thx very much.
        Sorry, but I still want to pin down exactly what you mean by, in this case, "view". Can you please explain what you want to actually happen?

        Comment

        • shaiful
          New Member
          • Oct 2007
          • 89

          #5
          Ok Hi, Sorry for make u more Question. and many thx for attention. Actually I want to make a button on form and this will action after pressing that: i want want see my all files from directory c:\x\[ files .doc, .dwg, etc] will autometically display, I mean e;g: i can edit and read the .dwg files .... sorry again.

          Comment

          • shaiful
            New Member
            • Oct 2007
            • 89

            #6
            Hello, again pls how to see the file "C:\test\x. dwg" it will start open its self, thx

            Comment

            • Killer42
              Recognized Expert Expert
              • Oct 2006
              • 8429

              #7
              Have a look at this thread - it explains how to use ShellExecute, which I think can start any type of file.

              Comment

              • Ali Rizwan
                Banned
                Contributor
                • Aug 2007
                • 931

                #8
                Originally posted by shaiful
                Hi all, I have a problem that "How to open files from any particaular directory?" I mean just I wanna to press button then autometically will open all files from directory one by one, Thanks in Advance
                Hi,
                Use loop for opening all files and use this code for opening.
                ShellExec("C:\t estfile.doc")
                GOODLUCK
                ALI

                Comment

                Working...