Good day,
I am having an issue creating a backup.bat file that has an exclude
statement. What I am trying to do is to backup the My Documents folder
off of C: while excluding the Music directory (to save space). The
backed up files are copied to the mapped H: drive. If anyone can see
where I have gone wrong please let me know. Thank you!!!
Echo
SET ExclPath="C:\Documents and Settings\%username%\My
Documents\Exclude\exclude.txt"
XCOPY "C:\My Documents" /e /s /y H:/EXCLUDE: "C:\Documents and
Settings\%username%\My Documents\Exclude\exclude.txt"
Errors =
Invalid number of parameters
rowe_newsgroups - 12 Jul 2007 15:30 GMT
> Good day,
> I am having an issue creating a backup.bat file that has an exclude
[quoted text clipped - 13 lines]
>
> *** Sent via Developersdexhttp://www.developersdex.com***
Well your first mistake is that you posted a vbscript question to the
Visual Basic .Net newsgroup.
Thanks,
Seth Rowe
william ewald - 12 Jul 2007 15:38 GMT
Thanks Seth.....and where should I post it?
Bill Ewald
rowe_newsgroups - 12 Jul 2007 16:30 GMT
> Thanks Seth.....and where should I post it?
>
> Bill Ewald
>
> *** Sent via Developersdexhttp://www.developersdex.com***
I would say microsoft.public.scripting.vbscript
Thanks,
Seth Rowe
Michel Posseth [MCP] - 12 Jul 2007 20:24 GMT
VBscript ????? huh ...... :-)
i call this just DOS commands , or command parameters , or Batching but
VBscript .... no
It stays O.T. for this group but however as i just one to beat myself on
the chest again for knowing the answer for this question
here it is :-)
This should work
xcopy "C:\Documents and Settings\Bla\My Documents" "H:\Backup\Michel" /I /E
/Y /C /V /R /Z /K /H /exclude:C:\Backupexclude\excludeList.txt
in the excludeList.txt
\My Documents\Music\
\My Documents\Movies\
\My Documents\Rubish\
Regards
Michel Posseth
> Good day,
> I am having an issue creating a backup.bat file that has an exclude
[quoted text clipped - 13 lines]
>
> *** Sent via Developersdex http://www.developersdex.com ***