Can someone please provide a .bat file that will copy network shares on old computer and another .bat file to map those drives on new computer?
Thank you
Erik
Not sure if I'm understanding you correctly, but if you have a set of mapped drives on "old" computer and you want the same mapped drives on "new" computer you can do this by exporting the registry key
HKEY_CURRENT_USER\NETWORK
Which is where the mapped drive info is stored.
You can copy the exported reg file via USB to the new computer and import it by double clicking the reg file.
However, if you mean that you have a bunch of shares on "old" computer and you want to translate those to the corresponding map drive statements, that's a bit more complex.
Shares are stored in HKEY_LOCAL_MACHINE\SYSTEM\Controlset001\Services\LanmanServer
But to create such a bat file, you need also to extract the PC name (because it is required as the first part of the NET USE statement.
If this is the scenario you are looking at how many shares are there to be exported? If only a few, it would be far quicker to just map them on the new computer.
Just my two cents worth
Tanya