Microsoft
Software
Hardware
Network
Question : xcopy /I not working
I have a very simple line in a script on XP computer.
xcopy "c:\config.xml" "C:\foldername" /I /Q /Y
This is meant to copy that file to that folder (the folder does not exisit), the
/I
should confirm it is a directory as a destination and create it. The thing it is still prompting File? or Directory?, why is /I not working?
I know there are many work arounds, create folder first, echo D at beginning of line etc but I would like to kow why this doesn't work.
Thanks
Answer : xcopy /I not working
You need a \ on the end of foldername -
xcopy "c:\config.xml" "C:\foldername\" /I /Q /Y
Lee
Random Solutions
KDC errors in middle of the night - had to reboot to get server back up
Error ORA-1722 when DAO is writing data to an Oracle 11g database
Dreamweaver deployment view questions.
BackupExec Problems Creating BackupToDisk folder on Buffalo Terastation Pro
Strange SQL Error
Sonicwall rule to block DHCP traffic between two site-to-site
HP Dataprotector error "Automatic DR information could not be collected"
Cisco ASA 5505 with AIP-SSC-5 card
Windows Authentication with User and Roles management in SQL Server
drupal 6.17 calendar