I tried following codes to copy one file from web client to another file in web client and i got runtime error "The system cannot find the file you specified":
<script language="javascript">
var WshShell = new ActiveXObject("WScript.Shell");
var oExec = WshShell.Exec ("%COMSPEC%_/c copy c:\\1.txt c:\\15.txt")
</script>
Actually I run "%COMSPEC% /c copy c:\1.txt c:\15.txt" successfully in Command Prompt. Could anyone let me know where I'm wrong with the JavaScript.
Thanks a lot in advance.
Yani
<script language="javascript">
var WshShell = new ActiveXObject("WScript.Shell");
var oExec = WshShell.Exec ("%COMSPEC%_/c copy c:\\1.txt c:\\15.txt")
</script>
Actually I run "%COMSPEC% /c copy c:\1.txt c:\15.txt" successfully in Command Prompt. Could anyone let me know where I'm wrong with the JavaScript.
Thanks a lot in advance.
Yani