![]()
[<<]Message[>>] [<<]Author[>>] [<<]Subject [<<]Thread
Number : 2813 Date : 2002-09-17 Author : Kan Yabumoto Subject : Re: Cant create destination directory Size(KB) : 4
Mike: I believe you are in a better position than I to tell why XXCOPY fails to create the subdirectory. Apparently from your description, XXCOPY tries to do so. So, the answer is on your system which only your careful observation of the situation can produce the answer. A few simple test can reveal whether it is a permission issue or not. Within the same DOS Box (after XXCOPY fails to create a directory), run a simple command like: mkdir \\Computer_name\share_name\backup\mysubdir (using the exact directory name which failed by XXCOPY.) There are a number of situations that could result in failure of such a command. One thing which is really puzzling to me is that in Win2K it works fine and not in Win9X. In most cases, the situation would be the other way around since the NT family OS has tighter security control. Another scenario is if the destination already has a file (it could be a hidden/system file) with the intended directory name, it will fail. Or, there may be a funny character in the pathname (which is not in the standard 8-bit character set). Also, we receive many tech support requests where we find the culprit in Norton Anti-Virus and NProtect, etc. which defy the regular behavior of the system. I don't know how much time we have wasted on Norton stuff. In my view, Norton AntiVirus should be selectively applied to incoming files but not to be run at all times for all files. At least, when one is testing a funny behavior, he should always disable Norton stuff while debugging a strange case. At any rate, I strongly suspect that you may fail to create the directory using a direct "MKDIR" method. Having said that, I do not rule out the possibility that XXCOPY is at fault. BTW, we *ALWAYS* want to know the version number of XXCOPY and the full command line which results in strange behavior regardless of what is the most probably cause (we hate to ask questions to answer a question). In an innocent-looking case which the user describe as "simple", we may find a missing trailing backslash in the source specifier that causes a syntactic ambiguity (I have posted numerous message on this subject but I estimate the majority of XXCOPY users do not put a backslash after a directory name in the source specifier). It is pointless for me to give you an exhaustive list of all possible scenarios on how a directory creation may fail (but I did list a few possible scenarios --- I would not be surprised if none of the scenarios I suggested here cure the problem). Based on your description, XXCOPY succeeds in trying. Beyond that, it is some "external", environmental issue whatever that may be. That is all I can say. Kan Yabumoto ===================================================== At 2002-09-16 23:52, you wrote: >Hello All, >I'm having a problem in a Win98 workgroup where a local batch file is >used to XXcopy important files to a network drive. I have tried using >the /BU switch as well as /CLONE, however xxcopy will create the main >folders but not the subfolders underneath. For example, the My >Documents folder has various files in it. Plus, has a few subfolders >with files in them. Invariably, the line: XXCOPY "C:\My >Documents" "\\computer name\Share Name\Backup" /CLONE will result in >the MY Docs folder getting created plus copying the files within that >folder, but none of the subdirectories get created. Within the DOS >box of the batch file, xxcopy will see and read the subdirectory then >come back with the message CANT CREATE when it tries to copy the >subdirectory to the destination. Using the /I switch didnt work >either. Very strange indeed. Also, I use an exact setup with a Win2k >network and have no issues whatsoever. > >So my question is, what scenarios would cause XXCOPY to fail in >creating a subdirectory when using the /clone switch? Why is this >issue only related to Win98 and not Win2k? > >I would be more than happy to post the script if neccesary, however, >they are rather simple: source dest /clone for about 5 different >folders on each computer. Any feedback would be very helpful. I'll be >sure to post the results of this quandry. Even if it is embarrassing >to me :)
This message if part of XXCOPY's message Archive. The archive contains all the messages posted at Yahoo!Groups: XXCOPY.