I have a routine that copies a file to a folder named "NewFolder" in number of workstations at a predetermined time each day.
All I get to know about the workstation in advance is it's IP address.
Eg Copy file to //123.456.789.123/c/NewFolder etc.
If NewFolder does not exist, it creates one first.
My problem is that sometimes the name of the root folder is not "C" but sometimes the user has given it a name like "TomsComputer" and I dont know this in advance.
In which case the destination has to be //123.456.789.123/TomsComputer/NewFolder
Is there a way of finding out what the name of each workstation root folder is - or else using something like a wildcard for the root folder name - or not having to state the name at all and just copying direct to the NewFolder?
All I get to know about the workstation in advance is it's IP address.
Eg Copy file to //123.456.789.123/c/NewFolder etc.
If NewFolder does not exist, it creates one first.
My problem is that sometimes the name of the root folder is not "C" but sometimes the user has given it a name like "TomsComputer" and I dont know this in advance.
In which case the destination has to be //123.456.789.123/TomsComputer/NewFolder
Is there a way of finding out what the name of each workstation root folder is - or else using something like a wildcard for the root folder name - or not having to state the name at all and just copying direct to the NewFolder?