[<<]Message[>>]        Author[>>]        Subject[>>]    [<<]Thread[>>]

Number : 491 Date : 2001-07-30 Author : rotaiv Subject : Include / Exclude Options Size(KB) : 3
--=====================_1856806937==_.ALT Content-Type: text/plain; charset="us-ascii"; format=flowed This is what I would like to include in my daily backup: C:\My Documents\*\* C:\My Files\*\* C:\Windows\Favorites\*.* *.xls *.doc *.ppt *.pub *.ost *.pst *.pab, etc, etc This is what I would like to exclude: C:\Windows\Temp\*\* C:\Program Files\Microsoft Office\*\* After reading the documentation, the tech bulletins and help from Kan, I have come up with the following method: [savedata.bat] xxcopy /CFcmd.lst xxcopy "C:\My Documents" "D:\Backup\My Documents" /s /wd0 /pb /i /ec xxcopy "C:\Windows\Favorites" "D:\Backup\Favorites" /s /wd0 /pb /i /ec xxcopy "C:\My Files" "D:\Backup\My Files" /s /wd0 /pb /i /ec [cmd.lst] ::Source C:\NULL ::Target D:\Backup ::Include these files /IN*.mdb /IN*.doc /IN*.pub /IN*.ppt /IN*.wpd /IN*.ost /IN*.pab /IN*.pst /IN*.sso /INbookmark.htm ::Exclude these directories ::The "My Documents" will be backed up later /X"C:\My Documents\*\*" /X"C:\Program Files\Microsoft Office\*\*" /X"C:\Windows\Script.doc" /X"C:\Windows\Temp\*\*" ::Misc switches /S /WD0 /PB /I The problem is, I had to call xxcopy four times in order to get the job done. Is there a way to complete this in just one xxcopy command? Ideally, I'd like to be able to add directories to the /IN switch like I did with the /X. However, according to the documentation, you can not use backslashes. Which brings up a good question, why is it permissible via /X and not /IN? Seems like they are complimentary commands so why not make the syntax the same? Regards, rotaiv. --=====================_1856806937==_.ALT Content-Type: text/html; charset="us-ascii" This is what I would like to include in my daily backup: C:\My Documents\*\* C:\My Files\*\* C:\Windows\Favorites\*.* *.xls *.doc *.ppt *.pub *.ost *.pst *.pab, etc, etc This is what I would like to exclude: C:\Windows\Temp\*\* C:\Program Files\Microsoft Office\*\* After reading the documentation, the tech bulletins and help from Kan, I have come up with the following method: [savedata.bat] xxcopy /CFcmd.lst xxcopy "C:\My Documents" "D:\Backup\My Documents" /s /wd0 /pb /i /ec xxcopy "C:\Windows\Favorites" "D:\Backup\Favorites" /s /wd0 /pb /i /ec xxcopy "C:\My Files" "D:\Backup\My Files" /s /wd0 /pb /i /ec [cmd.lst] ::Source   C:\NULL ::Target   D:\Backup ::Include these files   /IN*.mdb            /IN*.doc   /IN*.pub   /IN*.ppt   /IN*.wpd   /IN*.ost   /IN*.pab   /IN*.pst   /IN*.sso   /INbookmark.htm ::Exclude these directories ::The "My Documents" will be backed up later   /X"C:\My Documents\*\*"   /X"C:\Program Files\Microsoft Office\*\*"   /X"C:\Windows\Script.doc"   /X"C:\Windows\Temp\*\*" ::Misc switches   /S /WD0 /PB /I The problem is, I had to call xxcopy four times in order to get the job done.  Is there a way to complete this in just one xxcopy command?  Ideally, I'd like to be able to add directories to the /IN switch like I did with the /X.  However, according to the documentation, you can not use backslashes. Which brings up a good question, why is it permissible via /X and not /IN?  Seems like they are complimentary commands so why not make the syntax the same? Regards, rotaiv. --=====================_1856806937==_.ALT--
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.