Common syntax of the net use command: 1. Create a new shared connection: net use [share path] [/user:username] [password]; 2. Disconnect an existing shared connection: net use [shared path] /delete; 3. List all shared resources currently connected: net use, etc.
The net use command is used to establish or delete shares between computers and list the currently connected shared resources.
The following is the common syntax of the net use command:
1. Establish a new shared connection: net use [share path] [/user: username] [password]
For example, to connect to the shared path named "sharename", the user is "tom" and the password is "password", enter the following command: net use \server\sharename /user:tom password
2. Disconnect an existing shared connection: net use [shared path] /delete
For example, to disconnect to a shared path named "sharename", enter the following command: net use \server \sharename /delete
3. List all shared resources currently connected: net use
The above is the basic usage of the net use command. You can view it by entering "net use /?" More available options and syntax.
The above is the detailed content of How to use net use command. For more information, please follow other related articles on the PHP Chinese website!