I'm here yeilding to your knowledge. I have a situation where I need some assistance building a .vbs script to do (what I believe) is a simple task.
I have a scenario which I need to have a .vbs script run on my user's login. The script should take a look at the IP address of the current machine and based on that address make a decision to run 1 of 2 files.
In my head this is how I envision the code..
- User initiates login
- (this .vbs runs)
- the script will check current IP addresses on the system.
- the script will make a decision (it will challenge the current IP to a set of known static IPs)
- the script (based on the desision) will then run (File A) if the current IP matches the known static IPs or run (File B) if the current IP does not match the known static IPs.
Known static addresses:
Does anyone have a simple code to share with that setup?