A
Andrew Shitov
I have to copy files from one network share folder to another (both are
on different remote machines). Server running this asp.net appllication
is not configurable (except web.config), while network forlers requires
passwords.
The ideal solution would allow me to simply write File.Copy (from, to,
true).
I thought of two possibilities: either map a network folder inside the
asp.net application or connect to the server that contail share.
Trying to start 'net use' failed:
System.Diagnostics.Process.Start ("net", @"use q: \\server\share$
/user:name password");
After this I still have the same drives as before calling 'net use'.
What should I do? How to map a network drive? Or how to access a server
(not changing the machine.config)?
on different remote machines). Server running this asp.net appllication
is not configurable (except web.config), while network forlers requires
passwords.
The ideal solution would allow me to simply write File.Copy (from, to,
true).
I thought of two possibilities: either map a network folder inside the
asp.net application or connect to the server that contail share.
Trying to start 'net use' failed:
System.Diagnostics.Process.Start ("net", @"use q: \\server\share$
/user:name password");
After this I still have the same drives as before calling 'net use'.
What should I do? How to map a network drive? Or how to access a server
(not changing the machine.config)?