Results 1 to 3 of 3
  1. #1
    Star Lounger
    Join Date
    Sep 2002
    Location
    Detroit, Michigan, USA
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    VB scripting (WD2000)

    I am working on a scripting utility. I am using the file system object to gather information on files and directories. Basically I'm populating a list box with a custom VBA created list of files and directories. What I need to do is open any file as needed pretty much as windows explorer would. But the scripting library shows only "Open as Text Stream" option (which basically won't allow me to open a file associated to the proper application). Is there a way to get around this?. Thanks in advance

  2. #2
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: VB scripting (WD2000)

    You can use
    ActiveDocument.FollowHyperlink "fileath"
    where path is the complete path to the file, or you can use ShellExecute - see <post#=232065>post 232065</post#>

  3. #3
    Star Lounger
    Join Date
    Sep 2002
    Location
    Detroit, Michigan, USA
    Posts
    92
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: VB scripting (WD2000)

    Worked just fine. Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •