agantony
-
Total Posts
:
15
- Scores: 0
-
Reward points
:
0
- Joined: 3/23/2007
-
Status: offline
|
ASP Move File Problem
Friday, March 30, 2007 9:08 PM
( permalink)
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>
|
|
|
|