![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject[>>] [<<]Thread[>>]
Number : 4385 Date : 2003-04-20 Author : Kan Yabumoto Subject : Re: Blank Directories Size(KB) : 7
Bob: Sorry to go back. But, I'm not sure what you really want. Are you saying you want to create many blank directories? For what? Are you saying you wanted to duplicate a directory to another with all the same component subdirectories without copying any files? If that was your intention and your question was "How can I create a directory which has all the subdirectory structure of the source but without any files?" My answer would be: xxcopy \src\ \dst\ /t/s/h the /T switch creates the directory structure (Tree) without copying any files. Please use more words to explain what you want to do. It is better using more words than necessary than using less words than what's needed. (I'm not sure what you wanted and don't know you received an answer from me. But, if you have no further question, we don't need your rephrasing of your original intent of your question. I just did not understand your real question but I can drop this case if your happy with my answer). Kan Yabumoto ======================================================== At 2003-04-19 07:05, you wrote: >Kan: >My question was concerning the creation of the large number of blank >directories. Since the extra directories have no effect on my system >I will not add extra steps to remove them. To verify the operation >completely I cleared the backup directories and ran with a reloaded >XXcopy. The results were identical. Re: A large number of blank dirs >but with all the correct files backed up. My "unwanted" comment >should have been "unknown". Your explanation cleared up my unknowns. >Thanks for the help and thanks for providing a great program. >BOB > >--- In xxcopy@yahoogroups.com, Kan Yabumoto wrote: > > > > Bob: > > > > Your original problem report was that there were many > > "blank" directories that were there. Since you were > > asking how to "change this", I interpreted it as you > > were observing the blank directories which were created > > by the XXCOPY command with the switches that you mentioned. > > My reply was that I could not verify the XXCOPY behavior > > that would create blank directories using the command. > > > > If your original question were, > > > > "I have many empty subdirectories in a directory. > > what command do I need to revove the empty directories?" > > > > Then, my answer would be: > > > > xxcopy \mydir\ /rs/s/r/h /x* > > > > After verifying its proper operation, you may add > > /yy to suppress the various confirmation prompts. > > > > The /RS/S command basically removes files and directories > > from the specified directory. The exclusion specifier > > /X* will exclude any file in the mydir directory from > > being removed. Since all existing files are protected > > by the /X* switch, the command will try to delete only > > directories. Having a file in a subdirectory is a > > good way of protecting a directory from being removed > > (it is simply impossible to delete a directory without > > first removing all of its contents). > > > > As a result, the operation will succeed deleting > > all empty directories but cannot delete any of > > directories which has a file inside. > > > > Note, if you have a subdirectory whose contents > > are empty subdirectories but no files anywhere > > inside, then, the subdirectory will be considered > > empty and will be deleted. > > > > ----------------- > > > > There is no such thing as "unwanted" switches. > > > > -------------------------------------------------------- > > I was trying to answer your question based on what > > you asked (I thought you were complaining about > > XXCOPY that creates "blank directories" but apparently, > > the directories had been there even before you ran > > XXCOPY). The reason why I asked for the log file > > was to make sure that I see all the switches there. > > --------------------------------------------------------- > > > > XXCOPY has a lot of features whether you like it or not. > > There are many switches under the hood which is there to > > control various aspects of XXCOPY behavior. > > > > For example, XXCOPY does not stop a big job when a file > > is failed to be copied. After some repeated retries, it > > gives up on the fie and move on to the next file. This > > behavior is the default behavior of XXCOPY. The default > > /C switch is quietly working for you. On the other hand, > > when you want XXCOPY to terminate at the first such error, > > you may choose /C0 and XXCOPY will not continue beyond > > the first problem of copying files. So, whether you like > > it or not XXCOPY need to operate either with /C or with > > /C0 --- no other choice. So, you just can't say these > > are "unwanted" switches. > > > > At a given invocation, XXCOPY is always controlled with > > these switches that are implicitly set based upon your > > input command line. > > > > Kan Yabumoto > > ========================================================= > > > > > > At 2003-04-18 21:10, you wrote: > > >I am using XXCOPY ver. 2.82.9. Here is the data from /debugx. > > > > > > Source filespec = "C:\PROGRAM Files\LAVASOFT\AD-AWARE 6" > > > Destination dir = "C:\BACK\L\ADAWARE I" > > > Name template = "*.INI" > > > /DA 2003-01-01@00:00:00 <= LastWrite > > > /AC /BI /C /CB0 /CCY /CK /CL1G /CR3 /DA:2003-01- > > >01@00:00:00 /DL0 /E0 /EC0 > > > > /ED0 /ER0 /F0 /FM0 /FF0 /FL /FT0 /FW /H /I /IN*.INI /K0 /L0 /N0 /NP >0 > > >/NX /NI0 > > > > /NW /NC0 /o0 /oD1 /oE0 /oF1 /oI0 /oP0 /oS0 /oX0 /P0 /PB0 /PC0 /PD0 >/P > > >N /Po0 > > > /PZ0 /Q2 /QF0 /QB0 /QS0 /R /S0 /SP0 /SG0 /SX0 SZ:- > > > /T0 /TR00 /TS0 /TD0 /TTA0 > > > > /TCA0 /TCC0 /TCW /TM0 /U0 /V0 /W0 /WD /WV /Y /YY /ZE0 /ZS /ZX0 /ZY > > > > > >Now that you have told me about this log please give me some links > > >that will explain how to use it to eliminate some unwanted >commands. > > >BOB > > > > > >--- In xxcopy@yahoogroups.com, Kan Yabumoto wrote: > > > > A problem report like this always needs the XXCOPY version > > > > number that was used. > > > > > > > > For one thing, I can't reproduce what was reported using > > > > the latest (and recent versions). I think it is most > > > > helpful if the log file (created by the /ON switch) > > > > was shown in the report. For example, the user may have > > > > an environment variable setting which has "XXCOPY=/E" > > > > that would explain the situation. Or, the case may involve > > > > the /NX (SFN-preservation) feature which has been improved > > > > lately. > > > > > > > > There are a number of cases like this that the user often > > > > don't realize --- the log file (with the much-dreaded list of > > > > the list of switches) would reveal commonly overlooked > > > > environment. > > > > > > > > Kan Yabumoto > > > > =========================================================== > > > > At 2003-04-18 09:59, you wrote: > > > > >I have successfully used XXCOPY for backup for a few years on >my > > > > >Windows 98 system. To minimize backup time and disk activity I >have > > > > >split the files into two groups, old and new files. > > > > > > > > > >I have one condition I do not like, a large number (42 in 108) > > >blank > > > > >directories are created. > > > > >I use the following switch settings: > > > > >/AC/BI/H/Q/Q2/R/ZY/YY/ZS/DA:2003-1-1 on new file backup and > > >DB;2003-1- > > > > >1 on old file backup > > > > > > > > > >I have tried several different settings but cannot eliminate >the > > > > >blank directories. Does anyone have any suggestions to change >this? > > > > > > > > > >Bob > > > > > > > > > > > > > > > > > >Your use of Yahoo! Groups is subject to >http://docs.yahoo.com/info/terms/ > > > > > >Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.