Re: Help with network drive map - detect IP address and appe
Apologies for not being too clear in the description.
Basically, there are 50+ servers for restaurants we deal with, each server is on site at the restaurant.
Each site has 3 - 6 POS tills running on Win 2000, and can manually map a drive from the server.
We need to map the drive to POS2 for each server, so there wont be any issues with drive letter allocations.
For each site, the server name remains the same, but the POS computer names are named using their store ID.
(Computer - Computer Name - IP)
Server - PCKDSBOH - 10.19.332.47
POS1 - 0119_POS1 - 10.19.332.12
POS2 - 0119_POS2 - 10.19.332.13
POS3 - 0119_POS3 - 10.19.332.14
Server - PCKDSBOH - 10.1.2.47
POS1 - UK232f_POS1 - 10.1.2.12
POS2 - UK232f_POS2 - 10.1.2.13
POS3 - UK232f_POS3 - 10.1.2.14
POS4 - UK232f_POS4 - 10.1.2.15
Server - PCKDSBOH - 10.99.67.47
POS1 - UK2009_POS1 - 10.99.67.12
POS2 - UK2009_POS2 - 10.99.67.13
POS3 - UK2009_POS3 - 10.99.67.14
POS4 - UK2009_POS4 - 10.99.67.15
POS5 - UK2009_POS5 - 10.99.67.16
So as you can see, they all contain a common element within the names, IP's and Computer Names.
I'm trying to create a script to push out, and auto run via ERAC, so the Drive Letter must be all the same ie. Q:\.
I know that that specific drive letter is free for all servers.
The script will ideally map the drive, then copy over a file from a folder on the C:\ drive to the C:\ drive on POS2 overwriting any files sharing the same name.
I've got most of it sorted, just need some help/ideas on getting the IP detected.