search
HomeComputer TutorialsComputer KnowledgeHow to skillfully create folders in batches using the command prompt

How to skillfully create folders in batches using the command prompt

Jan 11, 2024 pm 05:48 PM
Create using command prompt

How to skillfully create folders in batches using the command prompt

How to create folders in batches using the command prompt

These are just basic applications of command prompt tools, but in special cases, it can improve work efficiency, such as batch creation of folders.

Create Deep Folder

In Windows Explorer, to create a multi-level folder "a\b\c\d", four folder creation operations are required. However, with Command Prompt, you can accomplish this task by just entering a single command.

First, click "Start - All Programs - Accessories - Command Prompt", or press the shortcut key "Win R", then enter "cmd" and run to open the "Command Prompt" window. Next, type the following command.

md f:\a\b\c\d

After pressing the Enter key, a subfolder named "a" will be created under the F drive. Then, a subfolder named "b" will be created under the "a" folder. By analogy, multi-level folders can be created in sequence. Remember to add a half-width space bar after using the md command.

Create multiple folders

If you need to create 4 folders named "a", "b", "c", and "d" respectively in a certain directory, you can quickly achieve it through the following command: Open in the target folder Command line window and enter the command "mkdir a b c d". In this way, these four folders can be created at the same time.

You can also execute this command by entering the directory, such as "md f:\a f:\b", which will create folders named "a" and "b" respectively under the F drive.

For the convenience of explanation, the examples in the text are all in English. You can enter Chinese as needed, so that you can create a folder with a Chinese name.

Create command prompt switch wifi

@echo off

echo.&echo.

echo Wifi Startup Assistant

echo.&echo.

echo [ Y=on ] [ N=off ]

echo.&echo.

set/p a=Please enter the command:

if %a%==Y pause>nul&goto b

if %a%==N pause>NUL&GOTO a

:b

netsh wlan set hostednetwork mode=allow ssid=wifiname key=wifipassword

netsh wlan start hostednetwork

:a

netsh wlan stop hostednetwork

netsh wlan set hostednetwork mode=disallow

Change the ssid and password yourself.

How to create a computer user using CMD

Enter the following command at the MS-DOS prompt: "net user john 123 /add" and press Enter. You can create a new user named "John" with the password "123".

The Add parameter indicates a new user.

Create a user with limited login time

Use the following methods to control computer usage time. For example, you need to create a user account for John with a password of "123" and login permissions from 8 a.m. to 10 p.m. from Monday to Friday and from 7 p.m. to 9 p.m. on weekends.

1. For the 12-hour clock, type the following command: "net user john 123 /add /times:monday-friday,8AM-10PM;saturday-sunday,7PM-9PM" and press Enter to confirm.

2. For 24-hour format, you can type the following command: "net user john 123 /add /times:M-F,8:00-22:00;Sa-Su,19:00-21:00" and press Enter to confirm. Can.

It is worth noting: The increase value of Time is limited to 1 hour. For Day values, you can use the full name or abbreviation (i.e. M, T, W, Th, F, Sa, Su). Either 12-hour or 24-hour time notation can be used. For 12-hour notation, use AM, PM or A.M., P.M. An All value means the user can always log in; an empty value (blank) means the user can never log in. Use commas to separate days and times, and semicolons to separate days and time units (for example, M, 4AM-5PM; T, 1PM-3PM). Do not use spaces when specifying time.

In addition, the Passwordchg:{yesno} parameter can be used to specify whether users can change their passwords. The default setting is Yes.

If used without parameters, Net User will display the list of users on the computer. For example, type the following command: "net user" and press Enter to display all users of the system.

If you type: "net user john" and press Enter, user John's information will be displayed.

If you type the command: "net user john 123456 /add" and press Enter to confirm, the password of user John (John is an existing user) will be forcibly changed to 123456.

If you type the command: "net user john /delete" and press Enter to confirm, user John can be deleted

The above is the detailed content of How to skillfully create folders in batches using the command prompt. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:Excel办公网. If there is any infringement, please contact admin@php.cn delete
Download Hidester VPN/Proxy to Access Your Favorite Content - MiniToolDownload Hidester VPN/Proxy to Access Your Favorite Content - MiniToolApr 22, 2025 am 12:50 AM

Learn about Hidester VPN and Hidester proxy and download Hidester VPN for Windows, Mac, Android, and iOS to use this VPN service to view websites with no limit. For more useful free computer tools and troubleshooting tips, you may visit php.cn Softwa

Windows Keyboard Opening Shortcuts Instead of Typing [Fixed]Windows Keyboard Opening Shortcuts Instead of Typing [Fixed]Apr 22, 2025 am 12:48 AM

Have you ever encountered the trouble of “Windows keyboard opening shortcuts instead of typing”? In this post from php.cn, you will learn how to fix this issue.

Easy Ways to Add the Control Panel Icon to Desktop on Win 10 / 11Easy Ways to Add the Control Panel Icon to Desktop on Win 10 / 11Apr 22, 2025 am 12:46 AM

In this post, php.cn Software will introduce what Control Panel is and how to add the Control Panel icon to desktop on your Windows 10 or Windows 11 computer. You can also learn some related information about desktop icon settings.

Granblue Fantasy Relink Save File Location & Backup Save DataGranblue Fantasy Relink Save File Location & Backup Save DataApr 22, 2025 am 12:45 AM

If you play Granblue Fantasy: Relink on your PC, you may wonder where you can find its save file. In this post, php.cn introduces everything you want to know - Granblue Fantasy Relink save file location and how to back up the savegame of this game.

How to Fix Event ID 1104: The Security Log Is Now Full? - MiniToolHow to Fix Event ID 1104: The Security Log Is Now Full? - MiniToolApr 22, 2025 am 12:44 AM

Event Viewer keeps track of activity for better management. However, if the upper limit of the security log is reached, no more events can be logged. In this post on php.cn Website, we will show you how to deal with Event ID 1104 the security log is

Watch: How to Enable Secure Boot on Gigabyte Motherboard?Watch: How to Enable Secure Boot on Gigabyte Motherboard?Apr 22, 2025 am 12:43 AM

Secure Boot is a security standard that can prevent your computer from booting with untrustworthy software. Enabling it will add an extra layer of security to your device. In this post from php.cn Website, we will show you how to enable Secure Boot o

Windows 11 23H2 Release Date: September 26, 2023 - MiniToolWindows 11 23H2 Release Date: September 26, 2023 - MiniToolApr 22, 2025 am 12:42 AM

Coming to a new year, what Windows 11 users are looking forward to are not only the patch updates but also the annual major update for Windows 11. This post will talk about the Windows 11 23H2 release date. In addition, if you want to recover deleted

How to Turn off Bixby on Samsung Phone? See a Guide! - MiniToolHow to Turn off Bixby on Samsung Phone? See a Guide! - MiniToolApr 22, 2025 am 12:41 AM

Can you completely disable Bixby? How to turn off Bixby on Samsung phones? It is not hard to disable this voice assistant. In this post from php.cn, we will go to any length to help you find the method. Besides, a way to turn off “Hi, Bixby” is also

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software