why is exec ('xcopy /o') not working ?
Posted on 2006-06-12
To support automated installations on Windows 2003 Server running PHP 4.4.1, I need a script to copy a basedir. The code exec ('xcopy \\base \\newdir') with a lot of commandline options works just fine. The only exception is the parameter /o which is supposed to copy the correct rights to the new directory. I need this so I can set the correct rights on the basedir (cachedir needs write permissions, and so on). I've not yet been able to solve this, or find more information about this. How can I get PHP to set the correct rights (preferrably using xcopy) ? Any other way that works is also acceptable.