Copy File

Copys a file from one location to another using WSH

Public
Tested
My Own Work
<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 3367 Downloads 1031

Classic ASP File System
JeffSmith
26
Revisions

v1.0