OutInLeftField
Programmer
I want to copy a file from a network drive to a local drive (c:\ or d:\).
Problem is when I execute the following,
source = request("source"
destination = request("destination"
fso.copyfile source,destination
I am using an input field with the type "file" to display a browser button. After the user chooses the file/folder to copy for source and destination, he/she clicks on submit button. If the files are in the server itself, the copy works; however, if the file is on the users machine's harddrive, I get the following error:
Microsoft VBScript runtime error '800a004c'
Path not found
/deptinfo/phonlist/CopyFiles.asp, line 14
line fourteen is:
fso.copyfile source,destination
I am guessing that the c:\ drive portion fails because the c:\ is the harddrive on the Web Server not the c drive on my machine.
How can I copy a file from my machine's harddrive to the network and vise versa?
Thanks
Problem is when I execute the following,
source = request("source"
destination = request("destination"
fso.copyfile source,destination
I am using an input field with the type "file" to display a browser button. After the user chooses the file/folder to copy for source and destination, he/she clicks on submit button. If the files are in the server itself, the copy works; however, if the file is on the users machine's harddrive, I get the following error:
Microsoft VBScript runtime error '800a004c'
Path not found
/deptinfo/phonlist/CopyFiles.asp, line 14
line fourteen is:
fso.copyfile source,destination
I am guessing that the c:\ drive portion fails because the c:\ is the harddrive on the Web Server not the c drive on my machine.
How can I copy a file from my machine's harddrive to the network and vise versa?
Thanks