Map Network Drive

November 22, 2006 · Posted in DOS Batch 

Sometimes, when need to copy files over the network, I will integrates this small portion into the batch job to map drive automatically.

@echo off
IF EXIST Z:\ServerA\SharedFolder\ (
echo “Z Drive Mapped”
) ELSE (
net use Z: \\192.168.1.1\SharedFolder /user:username password
)
Blog Widget by LinkWithin

Popularity: 17% [?]

Share and Enjoy:
  • del.icio.us
  • Haohao
  • Digg
  • Reddit
  • StumbleUpon
  • Technorati
  • Google Bookmarks
  • Live
  • Facebook
  • RSS

Comments

Leave a Reply