programming-examples/asp/More_Code_Snippets/This copies a file called test.asp to test2.asp

9 lines
271 B
Plaintext
Raw Normal View History

2019-11-18 14:25:58 +01:00
<%
Dim objFSO, objFile
Set objFSO = CreateObject("Scripting.FileSystemObject")
Set objFile = objFSO.CreateTextFile("d:\test.txt", True)
objFile.WriteLine("This is a test.")
objFile.Close
Set objFile = objFSO.GetFile("d:\test.txt")
objFile.Copy ("d:\test2.txt")
%>