本帖最后由 pcl_test 于 2016-11-3 16:43 编辑
| Dim WSHShell | | set WSHShell=CreateObject("WScript.shell") | | 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")COPY |
在网上找到以上代码,请问:“For Each d in dc ”这句里面的“d”是哪来的?而且为什么是“d",不是“a”,也不是“c”? |