How do I make my web server copy a file?
Posted on 1998-08-13
I have an NT4 server running IIS3 and I have perl for win32 loaded on it. I have a form in a web page an when the user clicks on 'submit' I need my perl script to copy a file from one place to another on the web server itself, not on the client side.
I have tried the following, and they don't give errors, they just ignore the command.
system ("copy c:\test d:\test");
system ("cp c:\test d:\test");
cp "c:\test" "d:\test";
copy "c:\test" d:\test";
copy "c:\test d:\test";
Has anyone ever done this or know the correct syntax if it is possible?