- @echo off
- rem 此操作需修改注册表,如果安全软件报警,选择“允许运行”或先退出安全软件
- set "fd=D:\BAT"
- 2>nul md "%fd%"
- more +7 "%~f0">"%fd%\createsubfolders.vbs"
- reg add "HKCR\Directory\shell\在此文件夹里新建若干子文件夹\Command" /ve /t REG_SZ /d "wscript.exe \"%fd%\createsubfolders.vbs\" \"%%1\"" /f
- pause&exit
- Set fso=CreateObject("Scripting.FileSystemObject")
- For i=100001 to 100010
- fd=WScript.Arguments(0)&"\"&Right(i,3)
- If not fso.FolderExists(fd) Then fso.CreateFolder(fd)
- Next
复制代码
|