Broonie <> wrote:
>
> Hi There,
>
> I'm having some problems with xCopy files to profiles on Vista
> machines. I realise robocopy is the copy util to use with vista but
> I'm copying via a logon script with a mixed vista and XP environment.
> That is also why i'm using "documents and settings" rather than
> "users" in the path.
>
> The following command copies the file over properly without any
> prompts.
>
> xcopy "\\servername\share\filename" "C:\users\%username%\appdata
> \roaming\directory\"
>
> However, the following command gives me an invalid path message
>
> xcopy "\\servername\share\filename" "C:\Documents and Settings\
> %username%\Application Data\directory\"
>
> If I add the file name as below, the file copies but it also asks me
> if the destination is a file or directory
>
> xcopy "\\servername\share\filename" "C:\Documents and Settings\
> %username%\Application Data\directory\filename"
>
> Can anyone explain this strange behaviour?
BTW, you can always add Robocopy to XP, from the Windows Server 2003
Rescource Kit. There is also an updated version, that you can use with XP,
that gets installed along with the Robocopy GUI. This is the preferred
version, for me, as it can correctly keep original folder timestamps.
http://technet.microsoft.com/en-us/m...spotlight.aspx
ss.