How to copy a text to another folder
S T E P - 1
- We need to use the FileSystemObject object:
<%
Dim fSys
Set fSys = CreateObject("Scripting.FileSystemObject")
%>
S T E P - 2
- We can use the server.mappath(".") to get the webserver's current folder.
- We use the MoveFile method to move a file to another folder.
<%
fSys.MoveFile server.mappath(".") & "\myFile.txt", "C:\"
response.write("Process copy file")
Set fSys = Nothing
%>
No comments:
Post a Comment