I am working on a BAT file and I am in need of assistance.
I need to call to a folder based on the name of the workstation the BAT file is running on.
My computer name is: NYCACT001
I use find out the location of the computer:
So I have NYC as a variable.
Now using this variable I need to open a folder on a server
\\server1\share1 I can map a drive to it.
In this folder I have folders
What I need to do is match the NYC from the computer name and open the folder NYCxxx on the server regardless of the numbers at the end. And then simple copy the files from the folder to a local location.
Any advice is greatly appreciated.