patrickm129 0 Newbie Poster

Hi,
Today I set up a NFS with Windows Server 2003 R2, and I was writing a .cmd file to back up the C:/Documents and Settings/ folder to the NFS (Network File System).

I'm having a problem with the parameters of the xcopy (Copies folders and subfolders), I'd really appreciate it if you could help me out with this!
Code:

echo off
title Welcome %USERNAME%
cls
:TOP 
color 0a
cls
echo %USERNAME%, Would you like to back-up your files since last shutdown?
set /p input="Y/N:"
if %input%==yes goto :BACKUP
if %input%==Yes goto :BACKUP
if %input%==y goto :BACKUP
if %input%==YES goto :BACKUP
if %input%==Y goto :BACKUP
if %input%==n goto :EXIT
if %input%==no goto :EXIT
if %input%==N goto :EXIT
if %input%==NO goto :EXIT
:BACKUP
title Backing-Up 
color 0c
cls
echo Please do not interrupt the backup, your system will resume after...
xcopy C:/Documents and Settings/%USERNAME%/My Documents/ \\murray-da3892f9\Shared\%USERNAME%\ /e/i
pause >nul
:EXIT
exit
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.