I have been researching xcopy and trying to find a command line tool that will correctly copy files from a networked pc to a local pc. I wish to write a script later on, but the code Ive tried keeps giving me "Invalid number of parameters".
What Ive tried, is "xcopy /s \\computername\firstfolder\secondfolder D:\firstfolder\secondfolder"
Oddly enough, "xcopy /s \\computername\firstfolder D:\firstfolder" works.
This is on a computer which is my media system and I wish to have a script at bootup that will auto-transfer the files. It works for one folder deep on both sides, but not 2, as in what I have above.
Do I need mapped drives instead? Or do I need to use robocopy?
Thoughts anyone?
Thanks,
Jim
What Ive tried, is "xcopy /s \\computername\firstfolder\secondfolder D:\firstfolder\secondfolder"
Oddly enough, "xcopy /s \\computername\firstfolder D:\firstfolder" works.
This is on a computer which is my media system and I wish to have a script at bootup that will auto-transfer the files. It works for one folder deep on both sides, but not 2, as in what I have above.
Do I need mapped drives instead? Or do I need to use robocopy?
Thoughts anyone?
Thanks,
Jim