Prevent script from running on home network

Joined
Apr 27, 2010
Messages
1
Reaction score
0
Points
1
I have a login script that maps my network drives on my company network, but I don't want this script to run on my home network since it errors out each time.

Is there a way I can create a script that pings my company server and if it is not available then it does not run my login script?

This is what my login script looks like now

delay 5
mount volume "smb://server/share1"
mount volume "smb://server/share2"
mount volume "smb://server/share3"

Thanks,

Rick
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top