Copy file to WebDAV via Command Line on Windows 2003

Posted by Boden on Server Fault See other posts from Server Fault or by Boden
Published on 2009-10-28T23:04:50Z Indexed on 2012/09/30 15:40 UTC
Read the original article Hit count: 188

I need to copy a file from a Windows 2003 server to a WebDAV folder (on the same server, if it matters). This operation will be performed via a batch script executed via Scheduled Tasks. I've enabled the WebClient service on the server.

So far I've determined that I can do it like this:

net use x: http://host/path
copy c:\path\myfile.txt x:
net use x: /delete

1) Is there a simpler way than creating a temporary mapped drive? Will it work via a batch file when no user is logged in?

2) Is there anything I should know about enabling the WebClient service on my server? Previously it was disabled, which I assume is default.

© Server Fault or respective owner

Related posts about windows-server-2003

Related posts about command-line