dowload file from shared drive to desktop C# -
i'm trying download file shared drive desktop keeps throwing error not virtual path. here code:
if (directory.exists(server.mappath("m://shareddrive//" + username))) { file.copy("m://shareddrive//" + username, "c:\\documents , settings\\user\\desktop\\" + username, true); }
are doing in asp.net application? (i'm guessing since using server.mappath
). have 2 problems:
- iis runs in service session, has no access users' mapped drives such
m:
. iis can access physical drives, or unc paths (the latter requires security set correctly). - iis has no access user's desktop.
please explain bit more detailed trying achieve if able help.
Comments
Post a Comment