DBAsupport.com Forums - Powered by vBulletin
Results 1 to 4 of 4

Thread: Win NT mapping scripts between boxes

Threaded View

  1. #2
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142
    I'm assuming you have a "domain" setup to control security.

    1) Create a share on a Box2 directory (Right-Click, Sharing . . .) careful with the permissions.

    2) On Box1 include in the .bat:
    net use X: \\Box2\sharename
    call X:\my.cmd
    net use X: /delete

    To improve that, you could test on the existance of the .cmd file before trying to execute it and loop if not found (attempt to deal with Box2 or network down etc).

    HTH
    Last edited by DaPi; 03-19-2003 at 12:45 PM.
    "The power of instruction is seldom of much efficacy except in those happy dispositions where it is almost superfluous" - Gibbon, quoted by R.P.Feynman

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width