boost::filesystem with network paths on windows

Hi, I am trying to use boost filesystem to copy files from a local directory to a directory on a network server (the latter having a path like \\databaseserver\c$\importfiles\myTabledump.txt <file:///\\databaseserver\c$\importfiles\myTabledump.txt> ) Unfortunately the leading double backslashs (\\) get converted in the constructor of filesystem::path to double slashs - yielding a different meaning. Is there a way to copy files on windows to network servers like this? Regards, Arne Adams Nerotal 23 65193 Wiesbaden Tel.: (+49) 611 3413745 Mobil: 0172 6147473 Mail: inbox@arneadams.com

At 06:53 AM 4/8/2004, Arne Adams wrote:
I am trying to use boost filesystem to copy files from a local directory to a directory on a network server (the latter having a path like \\databaseserver\c$\importfiles\myTabledump.txt <file:///\\databaseserver\c$\importfiles\myTabledump.txt> )
Unfortunately the leading double backslashs (\\) get converted in the constructor of filesystem::path to double slashs - yielding a different meaning.
Is the path specified in a string literal? Are you remembering to write "\\\\databaseserver"?
Is there a way to copy files on windows to network servers like this?
Network names are supposed to work, and there are some test cases in the regression tests. So if it isn't working for you, please post the exact code so we can look at it. --Beman PS: Sorry to be so long in replying.
participants (3)
-
Arne.Adams@t-online.de
-
Beman Dawes
-
Russell Hind