I often need to carry out access, modification, and similar operations through a LAN (WIN98 peer-to-peer networking), but the software I use does not support directly opening target data documents on the LAN. Instead, it requires setting up a mapped connection first -> entering the authorization password for the connection -> processing the data (in the WINDOWS environment) -> closing the connection. I also wrote a batch file to handle this, but I discovered a problem: WINDOWS uses parallel processing, unlike the step-by-step execution of commands in the old DOS days. The step of closing the connection cannot be used at the same time, otherwise it becomes impossible to operate. Only at this point did I start missing the single-step, sequential processing flow of the DOS era, which still has its advantages, especially for single-flow programs where the next step can only be executed after the result of the previous step comes out. Here, I would like to ask an expert who can solve this problem for help. Many thanks!

