In Windows 10 firewall, find all the enabled (ticked) rules that start with "File and Printer Sharing...", and individually go into each, and under the "scope" tab change from "Local subnet" to "Any IP Address"
File system metadata. Overhead needed to make files possible is underappreciated by sysadmins. Until they try to deal with many small files.
Say you have a million small 4 KB files, a decently fast storage with 8 drive spindles, and a 10 Gb link that the array can sometimes saturate with sequential reads. Further assume 100 IOPS per spindle, and it takes one ...
Each individual file transfer is a transaction and each transaction has overhead associated it. A rough example:
Client tells server: "I want to send a file, the filename is example.txt, size is 100 bytes".
Server tells client: "OK, I am ready to receive".
Client sends 100 bytes of file data to server.
Server acknowledges client it ...
start your Timer
run NET USE with "start" as supposed.
send your Batch into a loop
check if the netshare is already connected.
If yes Exit loop,
if not check if timer has exceeded
if yes - Echo Error and exit
Do what you want to do :)