General discussion

Locked

Detect network and map drive

By shuey ·
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 conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Windows Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums