Help with network drive map - detect IP address and append
Posted: 17 Apr 2012 04:05
Hello,
Im trying to create a batch file which will map a network drive.
I'm planning to push this out via Eset Remote Administrator Console to over 50 computers in different sites.
As these obviously have different IP addresses, I need a way to detect the IP and append to the script.
All the network drives use this IP 10.x.x.13
For example:
IP at site is 10.124.116.13
IP at another site is 10.127.765.13
I need the script to replace the x's in 10.x.x.13 with the 124.116 etc etc.
Possible?
My script so far which doesn't work:
@ECHO OFF
NET USE Q: \\*_POS2\c$ /user:pos "pospospos" /persistent:yes
Im trying to create a batch file which will map a network drive.
I'm planning to push this out via Eset Remote Administrator Console to over 50 computers in different sites.
As these obviously have different IP addresses, I need a way to detect the IP and append to the script.
All the network drives use this IP 10.x.x.13
For example:
IP at site is 10.124.116.13
IP at another site is 10.127.765.13
I need the script to replace the x's in 10.x.x.13 with the 124.116 etc etc.
Possible?
My script so far which doesn't work:
@ECHO OFF
NET USE Q: \\*_POS2\c$ /user:pos "pospospos" /persistent:yes