General discussion
August 8, 2001 at 11:32 AM
shuey

Detect network and map drive

by shuey . Updated 24 years, 12 months ago

I’m new to scripting but would like to create a script to automatically map a network drive if a network is present. I have a laptop which gives me network access when I’m docked on a docking station. When I log in I would like the script to map a drive if it detects a network present. I’m thinking that the script should issue out a ping command to the domain server during logon and if it returns with a reply then do a net use command after that. Problem is I don’t know how to convert this into code! Thanks in advance.

This discussion is locked

All Comments