Retrieve the path to the application data folder for a remote syst

Discussion in 'Scripting' started by miketones, Apr 1, 2008.

  1. miketones

    miketones Guest

    Is there a way to retrieve the path to the application data folder for a
    remote system?

    I have this for the local system:

    Function pathToTemplates()
    Const APPLICATION_DATA = &H1a&
    Set objShell = CreateObject("Shell.Application")
    Set objFolder = objShell.Namespace(APPLICATION_DATA)
    Set objFolderItem = objFolder.Self
    pathToTemplates = objFolderItem.Path & "\Microsoft\Templates"
    End Function

    But there does not seem to be a complimentary object in the WMI Classes.
     
    miketones, Apr 1, 2008
    #1
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.