Question

Locked

Batch file to copy network shares

By pmvg555 ·
I want to create a batch file to copy the network share adrresses from one pc, make it a batch file to run it on onther pc. See below:


:--------------Shares Migrator-----------
:cHANGE "?:\MY_SHARES.BAT" to your flash drive letter

for /f "TOKENS=1-4*" %%i in ('net use^| find ":"') do echo
net use %%j %%k /persistent:yes >c:\my_shares.BAT

when you run it, it only remembers the last network share address.

This conversation is currently closed to new comments.

2 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Answers

Back to Hardware Forum
2 total posts (Page 1 of 1)  

Related Discussions

Related Forums