bingxing8000 当前离线
一级士官
Dim WSHShell'定义变量 set WSHShell=CreateObject("WScript.shell") '创建一个能与操作系统沟通的对象WSHShell Dim fso,dc Set fso=CreateObject("Scripting.FileSystemObject")'创建文件系统对象 set dc=fso.Drives '获取所有驱动器盘符 For Each d in dc Dim str WSHShell.run("net share"&d.driveletter &"$ /delete")'关闭所有驱动器的隐藏共享 next WSHShell.run("net share admin$ /delete") WSHShell.run("net share ipc$ /delete")'关闭admin$和ipc$管道共享 复制代码
forfiles 当前离线
少将
TOP
CrLf 当前离线
论坛巡查
Set fso = CreateObject("Scripting.FileSystemObject") For Each file In fso.GetFolder("c:\").Files WScript.Echo "[" & file.DateLastModified & "] " & file.Name Next Set fso = Nothing复制代码
dir /b /a-d c:\>files.txt for /f "delims=" %%a in (files.txt) do ( echo [%%~ta] %%~nxa ) del files.txt>nul复制代码
czjt1234 当前离线
少校
virus_bat 当前离线
列兵