johnsm
asked on
How do I make my web server copy a file?
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?
Thanks.
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?
Thanks.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I'm kinda new to this perl thing and I didn't even think of those.
Thanks a lot for your help.