Hi Bahman,
Since this newsgroup is about ASP.NET, I assume you are asking to perform
the copy through a web interface.
You can add an HTMLInput tag in your HTML or ASPX page to allow the site
visitor to select a file from their desktop to be uploaded to the server.
For an example look at this link
http://www.webswapp.com/demos/htmlinputfile.aspx
BTW, you cannot automate the selection of the file from the server side code
because of the browser security constraints (imagine how much damage could
happen if the web programming model were to allow a webpage that you visit on
the World Wide Web to automatically upload files from your desktop to the
server)
--
HTH,
Phillip Williams
http://www.societopia.net http://www.webswapp.com
"Bahman" wrote:
Hello!
Sending email attachments works only if the file is on the server file system.
So, I need to copy the local file to the server.
Is there an easy way of doing this?
Thank you!
-Bahman