1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Batch-file advice needed please.

Discussion in 'Windows XP' started by masonite, 2009/05/14.

  1. 2009/05/14
    masonite

    masonite Well-Known Member Thread Starter

    Joined:
    2002/09/02
    Messages:
    445
    Likes Received:
    1
    In a friend's office, this batchfile copies the folder Bizdocs from drive E on computer1 to drive D on computer2.
    xcopy E:\Bizdocs\*.* D:\Weekly_Backup\Bizdocs\*.* /e/s/d/y/q
    But I don't understand why it works, because the correct path on computer2 is actually: D:\Backups\Weekly_Backup\Bizdocs

    It seems that the script finds the target Bizdocs folder even though it's behind\inside the Backups folder. Can anyone tell me why this works?
    Thanks :)
     
  2. 2009/05/14
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Maybe the Bizdocs folder on the other comp is mapped? How it finds it is sure mysterious.

    Anyway, I use xcopy in my backup scripts this way. I always out the switches after the xcopy command rather than after the destination.
    Code:
    xcopy /q/s/c/d/h/e/r/y/i  "C:\FOLDER\*.*"  "D:\FOLDER\ "
     

  3. to hide this advert.

  4. 2009/05/14
    masonite

    masonite Well-Known Member Thread Starter

    Joined:
    2002/09/02
    Messages:
    445
    Likes Received:
    1
    Thanks TonyT. Oh, so I'm not going batty, then :) The full path SHOULD be there in the script. As you say, maybe the "Bizdocs" folder is mapped?

    Anyway, I've replaced the old target drive with a DLink NAS-box (DNS-323) patched into this Win2K network, so I've got to re-do the scripts. I've mapped the DNS-323 as drive Z, so maybe I can just point the source there. But I'll do the full path in the script, I'm sure it can't do any harm (fingers crossed) :)

    Actually, there are a lot of odd things about this Win2KSP4 network; I'm really floundering. I've replaced one ailing machine with an XPP model - now I can't wait for the other four to expire.....
     
  5. 2009/05/15
    TonyT

    TonyT SuperGeek Staff

    Joined:
    2002/01/18
    Messages:
    9,072
    Likes Received:
    400
    Win2k sp4 is pretty rock solid. As a matter of fact, I just last Sunday setup an old P667 comp I had with win2k & office 2k for my church. Very fast and stable once configured. And with the restricted user account I know that comp will be functional for a long time to come.
     
  6. 2009/05/15
    masonite

    masonite Well-Known Member Thread Starter

    Joined:
    2002/09/02
    Messages:
    445
    Likes Received:
    1
    My problem (one of 'em, that is!) is that I'm mentally lazy. I know my way around XP pretty well, and I'm learning more every day (and there's NO way I'll be going to Vista or Win7), but Win2K is not an OS I've messed with much. OK, I know it's similar in many ways to XP, but every now and then I'll find something that makes me say, 'Uh, what?', so I'd rather see this friend running an entire lan of XPs, rather than Win2Ks.

    OK, I'm off to battle with the old scripts....

    Cheers :)
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.