Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


ASP FileSystemObject

 
Logged in as: Guest
arrSession:exec spGetSession 2,3,2679
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> ASP FileSystemObject
  Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 ASP FileSystemObject - 4/13/2005 7:37:35 PM   
  vidyavati

 

Posts: 7
Score: 0
Joined: 4/13/2005
From:
Status: offline
Can someone tell me where am I going wrong

<%
Function copyD()
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
fnm= FSO.form1.file1.value
MsgBox fnm
FSO.CopyFile fnm,"D:\temp"
Set FSO=Nothing
End Function
%>

<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data" name="form1">
<input type="file" name="file">
<input type="submit" name="Submit" value="Submit" onClick="copyD()">
</form>
</body>
</html>
 
 
Post #: 1
 
 Re: ASP FileSystemObject - 4/13/2005 7:45:38 PM   
  vietnamblood

 

Posts: 14
Score: 0
Joined: 3/28/2005
From:
Status: offline
i think you can write:
<%
Function copyD()
Set FSO = Server.CreateObject("Scripting.FileSystemObject")
fnm= FSO.form1.file1.value
MsgBox fnm
FSO.CopyFile fnm,"D:\temp"
Set FSO=Nothing
End Function
%>

<html>
<head>
<title>Untitled Document</title>
</head>
<body>
<form action="" method="post" enctype="multipart/form-data" name="form1">
<input type="file" name="file">
<input type="button" name="Submit" value="Submit" onClick="copyD()">
</form>
</body>
</html>

(in reply to vidyavati)
 
 
Post #: 2
 
 Re: ASP FileSystemObject - 4/13/2005 8:25:53 PM   
  vidyavati

 

Posts: 7
Score: 0
Joined: 4/13/2005
From:
Status: offline
But the cod eis not working. The file is not getting copied to destination

(in reply to vidyavati)
 
 
Post #: 3
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> ASP FileSystemObject Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts