Copy codeThe Code is as follows: @ echo off
Link established by rem
Net use \ 192.168.2.3 \ share/user: username password
Rem open shared folder
Explorer \ 192.168.2.3 \ share
Pause
Net use \ 192.168.2.3 \ share/delete
Exit
With the Explorer command:
Explorer [/n] [/e] <,/root], [path> <,/select], [path filename>
Parameter description
/N indicates opening a new window in "My Computer" mode, which usually opens the root directory of the Windows Installation partition.
/E Indicates opening a new window in the "Resource Manager" mode. The root directory of the Windows Installation partition is usually opened.
/Root, [path] indicates opening the specified folder,/root indicates displaying only the files (folders) under the specified folder, but not other disk partitions and folders; [path] indicates the specified path.
If you only use the [path] parameter without the/root parameter, you can display the content in other disk partitions and folders. In addition, you can specify the network shared folder in [path.
/Select, [path filename] indicates opening the specified folder and selecting the specified file. [path filename] indicates the specified path and file name.
If the/select parameter is not added, the system opens the file with the relevant program. If [path filename] is not followed by the file name, the parent directory of the folder is opened and the folder is selected.