Hi I have been trying to develop a batch file that will backup multiple directories of a users profile and work files.
I have a directory in the root of the drive named work and then I would like to copy outlook email pst files, my docs, desktop and favourites. I have seen may ways on various websites but my own scripts always fail! For instance;
I would like to backup via a external USB hard-drive with ther drive letter F:
I have tried
xcopy "%userprofile%\Desktop\"*.* F:\Backup\Desktop /s /c /d /e /h
and nothing happens.
If I go to the command line Run - cmd
it shows c:\documents and settings\user:
if I manually point to F:\backup\Desktop\ from the cmd promt
it shows f:\backup\desktop:
I then try
xcopy "%userprofile%\Desktop\"*.* /s /c /d /e /h
Is there something fundemental that I'm missing? I have already created the destination folder "desktop" on the F: drive