Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


ASP Move File Problem

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

 

 
  
  Printable Version
All Forums >> [Scripting] >> ASP >> ASP Move File Problem
  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 Move File Problem - 3/30/2007 8:08:21 PM   
  agantony

 

Posts: 15
Score: 0
Joined: 3/23/2007
Status: offline
Hi All,

I am trying to move a file using the following code in my asp page. The error I am getting in IE when I run the sub is "object expected" . The path to the following files is on the server and I have full accessrights to the sever. I can't see where am I going wrong? (PS: New to Programming)

Many Thanks!

<%
Sub smove()
Dim ID, strInput, strOutput, filesys
ID = "09-123-4"
ID = ID&".txt"
strInput = "d:\tmpdir\"&ID
strOutput = "d:\results\"&ID
Set filesys = CreateObject("Scripting.FileSystemObject")
filesys.MoveFile strInput,strOutput
Set filesys = Nothing
End Sub
%>
<form>
<input type="button" name="move" value="MoveFile" onclick=smove()>
</form>
 
 
Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> ASP >> ASP Move File Problem 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