There are many commands in Windows, we use it rarely, here I will introduce the usage methods of the commonly used commands in Windows, and use these commands to simplify or facilitate our use.
1. Mirror Virtual Disk Subst Command
With the subst command, you can use a hard drive that mirrors in a folder. It is better to have a folder in the E disk called Diskb, we can use the following command to create a B disk
Mapping virtual disk:
Subst B: E: / Diskb
In this way, there is a B disk in the resource manager, to delete the B disk can use the following command
Delete virtual disks:
Subst B: / D
Use the subst command directly to view the virtual disk, the command is as follows:
Subst
This command can simplify a lot of operations. For example, we put a file in a folder with a deep path, each time we want to operate these files, you must open the clip level level level level, so that this is time consuming . If you use a virtual hard drive, you can easily enter the folder we need to operate.
2. Net USE command maps a network drive
We are using a local area network that often maps a lot of network drives, but these network drivers do not automatically delete, and we must enter your password every time you turn it on. I think this is very cumbersome, can you simplify your operation? It is actually possible, that is, using the NET USE command, use this command to automatically map a network drive. If we save these commands in a batch file, then let this batch file in the startup folder, run this batch file, then we don't need to enter a password every time you start it, but for Windows 2000 Professional. You will also prompt your password each time you turn it on, but we can choose to follow the following ESC key and then let our batch files for mapping operations. For 2000 Server seems to be automatically connected when the drive mapping with the NET USE command is automatically connected when it is turned on.
Let's introduce the use of the NET USE command.
Assume that there is a machine named Heaven, there is a shared folder on this machine, its shared name is Share, and you can use the user name user to log in, the user's password is godloveme, then this network file is mapped to the local H: The order of the disk is as follows:
Map network driver command:
Net Use H: // Heaven / Share Godloveme / User: User
To delete a network drive H: disk, you can use the following command:
Delete network drives:
Net Use H: / D
Use the NET USE command directly to see the mapped network drive, the command is as follows:
Net USE
3. Net Share command shared a folder
Use the command NET Share to share a folder, delete a sharing, see what shared folders currently
Sharing a folder, for example, in E: A folder name is Share, we have to share it as a shared folder named Sharefolder, you can use the following command
Net Share Sharefolder = E: / Share
However, the sharing permissions at this time are default shared permissions, and if you want to modify, you can modify it in the Explorer.
Delete a sharing
Net Share Sharefolder / D
Use the NET Share command directly to see which shared folders currently have, which can easily find which shared folders on the current machine, and you can delete some unnecessary sharing, the command is as follows:
Net Share
4. Explorer Command Opens Explorer
For those who like to use the console, you will often be low in a directory, and then you can open the current folder in the Explorer, you can use the Explorer command to implement this feature. For example, open the current folder:
Explorer.
To open a specified folder, if you want to open the E: / Share folder in the Explorer, you can use this command:
Explorer E: / Share