Hi All,
I am working on a asp page that lets a user select a file and on submit copies to a folder on the server. The below doesnot seem to work, any suggestions / help / comments?
The asp pages are to work on a win xp machine running IIS and will operate on the LAN only. Is this possible ? am on the right track?
<---------- Asp Page ------->
<form name="form1" method="POST" action="filecopy.asp">
<input name="file1" type="file" class="fieldfmt" size="40">
<input name="Submit" type="submit" class="fieldfmt" value="Submit">
</form>
<------------ filecopy.asp------------>
<%
Dim fso, demofile, file_1
file_1 = Request.Form1("file1")
Set fso= CreateObject ("Scripting.FileSystemObject")
Set cmdCopyFile = fso.GetFile(file_1)
cmdCopyFile.Copy("c:\userfiles\")
%>
I am working on a asp page that lets a user select a file and on submit copies to a folder on the server. The below doesnot seem to work, any suggestions / help / comments?
The asp pages are to work on a win xp machine running IIS and will operate on the LAN only. Is this possible ? am on the right track?
<---------- Asp Page ------->
<form name="form1" method="POST" action="filecopy.asp">
<input name="file1" type="file" class="fieldfmt" size="40">
<input name="Submit" type="submit" class="fieldfmt" value="Submit">
</form>
<------------ filecopy.asp------------>
<%
Dim fso, demofile, file_1
file_1 = Request.Form1("file1")
Set fso= CreateObject ("Scripting.FileSystemObject")
Set cmdCopyFile = fso.GetFile(file_1)
cmdCopyFile.Copy("c:\userfiles\")
%>