[MSH] getting and putting files in Webdav folders named in My Network Places

Discussion in 'Scripting' started by PQ, Apr 14, 2006.

  1. PQ

    PQ Guest

    How does one operate on files in a webdav folder? At this stage I am just interested in getting or putting a file. Later on I'll want to enumerate the versions of a file.
    PQ, Apr 14, 2006
    1. Advertisements

  2. PQ

    dreeschkind Guest

    I think you will need to write your own cmdlet provider to access webdav

    Does anybody know where I can download a 'ready-to-compile' cmdlet sample
    provider for visual studio? I definitely would like to develop something like
    a webdav provider for MSH. Custom providers are one of the cooles things of
    MSH in my opinion!

    Any provider plans exept AD for MSH V2 ?
    dreeschkind, Apr 14, 2006
    1. Advertisements

  3. You can specify RAWXML in /FORMAT so you can deal with XML instead of Text

    wmic timezone list /format:rawxml
    Jeffrey Snover [MSFT], Apr 16, 2006
  4. There is no native way to access WebDAV in MSH. However, it is an HTTP
    protocol, so you could the HTTP support built into the .Net framework. For
    example, http://support.microsoft.com/?id=310283.

    This will require a lot of knowledge about WebDAV (and a good knowledge of
    C#,) but will work.

    As for your other question, our infrastructure does not support creating a
    provider via scripts. We could enable that scenario with some
    infrastructure effort, but there has been no demand for that so far. If you
    think this feature is important, please file it as feedback in the MS
    Connect site.

    Lee Holmes [MSFT]
    Microsoft Command Shell Development
    Microsoft Corporation
    This posting is provided "AS IS" with no warranties, and confers no rights.

    Lee Holmes [MSFT], Apr 19, 2006
    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.