« More dasBlog 1.7 changes coming soon | Main | Darned Usable - Yet Another Reason that ... »

On the OT list recently the question was asked: "Does anyone know of an FPSE (Front Page Server Extensions/WebDAV) client that works on the command-line?"

The fellow basically wanted to XCOPY/COPY files from his machine to a remote site from the command line. I recommended the ridiculously powerful SynchronEX. I use it to automate the backup of my site from FTP (XFTP actually, maintaining file dates!) nightly, which is then backed up by my Iomega Rev Drive's Automatic Backup Pro Software. It's more than just a command-line tool, it's a complete scriptable beast with two-way sync and multiple remote file system support.

Later, John Schroedl responded with this built-in-to-Windows-XP tasty tip:

net use * http://www.webdav.org/ passwrd /user:username

He notes a caveat "Windows XP assumes that any WebDAV repository begins at the root of the server path. If a user mounts http://www.example.com/hr/ergonomics, then the OPTIONS request to http://www.example.com/ must show WebDAV support or the Redirector will fail."

For example:

C:\>net use * http://foo/Bar/SomeDirectory XXXXXXX /user:scott
Drive Z: is now connected to
http://foo/Bar/SomeDirectory.

The command completed successfully.

C:\>dir z:
Volume in drive Z has no label.
Volume Serial Number is 0000-0000

Directory of Z:\

12/22/2004  05:01 PM    <DIR>          .
12/22/2004  05:01 PM    <DIR>          ..
12/09/2004  03:37 PM             2,335 File.egp
12/22/2004  05:01 PM    <DIR>          TestDir
               1 File(s)          2,335 bytes
               3 Dir(s)   2,620,660,736 bytes free

From here you can use the command shell commands (XCOPY/COPY) to work with DAV as any other drive. A great tip!

Tracked by:
"Mapping/Connecting a Drive Letter to a WebDAV or Front Page website" (Rob Eberh... [Trackback]
"Mapping/Connecting a Drive Letter to a WebDAV or Front Page website" (Rob Eberh... [Trackback]
"Mapping/Connecting a Drive Letter to a WebDAV or Front Page website" (Rob Eberh... [Trackback]


Wednesday, January 12, 2005 8:33:30 AM (Pacific Standard Time, UTC-08:00)
You can use NET USE X: \\sharepointserver\xxx\doclib1 to map a SharePoint doc lib to a local drive.
Franklin Ajaye
Wednesday, January 19, 2005 10:36:04 AM (Pacific Standard Time, UTC-08:00)
Hi Scott,
I was that fellow. :) Unfortunatley, this only works with WebDAV and not with FPSE, which use their own goofy protocol over HTTP. I'm still hunting for something that works with FPSE.
Monday, February 28, 2005 2:52:32 AM (Pacific Standard Time, UTC-08:00)
This is a great tip! And I have been trying to implement it, mapping drive N: to a WebDAV folder.
I'm having trouble getting the WebDAV Redirector to work with XCOPY and subdirectories. Everything works well with a single directory, but once I use xcopy /s I get:
File creation error - The directory is not empty
Unable to create directory - N:\winton\sub

Also, everything works perfectly if I copy and paste the files using Windows Explorer. The problem only appears with XCOPY.

I'm using XP Pro SP2 client and IIS 5.1 (also on XP Pro SP2) server.

Thanks for any thoughts.
Winton Kinson
Friday, July 22, 2005 2:09:05 AM (Pacific Standard Time, UTC-08:00)
Hi Scott
well I tried this, but I only get errors like Directory not found, etc. Do I have to start any services or need to set some special parameters?
Do you know much about the WebDAV Protocol?
The server log when I want to connect is:
http-80-Processor25, 22-Jul-2005 12:02:14, unauthenticated, PROPFIND, 207 "Multi-Status", 219 ms, /

when I connect via firefox the log is:
http-80-Processor24, 22-Jul-2005 12:07:35, unauthenticated, GET, 200 "OK", 172 ms, /

well now, do you think I have to change the server's config?
but how? and to what?
what servers do you use?

Many Questions, but I hope I'll get some answers
regards Tobias

Comments are closed.

Contact

Sponsors

Hosting By

Hot Topics

Tags

Calendar

<November 2009>
SunMonTueWedThuFriSat
25262728293031
1234567
891011121314
15161718192021
22232425262728
293012345

Archives

November, 2009 (5)
October, 2009 (19)
September, 2009 (11)
August, 2009 (12)
July, 2009 (21)
June, 2009 (26)
May, 2009 (16)
April, 2009 (13)
March, 2009 (17)
February, 2009 (17)
January, 2009 (18)
December, 2008 (32)
November, 2008 (17)
October, 2008 (22)
September, 2008 (16)
August, 2008 (14)
July, 2008 (25)
June, 2008 (19)
May, 2008 (17)
April, 2008 (17)
March, 2008 (26)
February, 2008 (21)
January, 2008 (28)
December, 2007 (19)
November, 2007 (17)
October, 2007 (31)
September, 2007 (39)
August, 2007 (37)
July, 2007 (43)
June, 2007 (37)
May, 2007 (32)
April, 2007 (38)
March, 2007 (29)
February, 2007 (46)
January, 2007 (31)
December, 2006 (27)
November, 2006 (31)
October, 2006 (32)
September, 2006 (39)
August, 2006 (34)
July, 2006 (40)
June, 2006 (18)
May, 2006 (31)
April, 2006 (34)
March, 2006 (30)
February, 2006 (38)
January, 2006 (44)
December, 2005 (19)
November, 2005 (34)
October, 2005 (24)
September, 2005 (37)
August, 2005 (20)
July, 2005 (24)
June, 2005 (33)
May, 2005 (16)
April, 2005 (22)
March, 2005 (34)
February, 2005 (15)
January, 2005 (37)
December, 2004 (28)
November, 2004 (30)
October, 2004 (34)
September, 2004 (22)
August, 2004 (34)
July, 2004 (18)
June, 2004 (64)
May, 2004 (49)
April, 2004 (21)
March, 2004 (29)
February, 2004 (29)
January, 2004 (36)
December, 2003 (25)
November, 2003 (24)
October, 2003 (59)
September, 2003 (42)
August, 2003 (24)
July, 2003 (44)
June, 2003 (29)
May, 2003 (21)
April, 2003 (30)
March, 2003 (27)
February, 2003 (47)
January, 2003 (50)
December, 2002 (31)
November, 2002 (38)
October, 2002 (44)
September, 2002 (15)
May, 2002 (2)
April, 2002 (4)

Google Ads