Is it possible to copy a file from one location to the desktop of the
user on the local lan? The webserver is IIS6, and all users are active
directory accounts. I realize that its a security risk to do such
things, but it would be ok in our given environment. I can't think of a
simple way to do it.
I was thinking of something similar to this:
Protected Sub btnPlaceIcon_Click(ByVal sender As Object, ByVal e As
System.EventArgs) Handles btnPlaceIcon.Click
IO.File.Copy("\\server1\share\Finance.mdb",
"%USERPROFILE%\Desktop\DataTest.mdb", True)
End Sub
This doesn't work because of the %userprofile%, but if I make it the C
drive, like this
IO.File.Copy("\\server1\share\Finance.mdb", "c:\DataTest.mdb", True)
then it just copies the file to the web server's C drive, of course.
The other option would be for them to click a link, which is anchored to
a batch file or vb script file, which they can then run. I have several
links that do that already so I was hoping to do this a little
differently, with less 'clicks'.
Any ideas, anyone?
TIA,
Jim