Copy File

Copys a file from one location to another using WSH

<html>
<head>
</head>
<body>
<%
dim wsh
set wsh = createobject("WScript.Shell")
response.write wsh.run("cmd /c copy d:\websites\jeffasmithcom\read_text\test.txt d:\websites\jeffasmithcom\read_text\test3.txt")
set wsh = nothing
response.write "done"
%>
</body>
</html>

Views 958 Downloads 330

'WScript.Shell'

JeffSmith
26
File System Classic ASP
Revisions

v1.0