当前位置:首页 » 文件管理 » vbs文件夹属性

vbs文件夹属性

发布时间: 2024-09-27 13:30:30

A. VBS读文件夹问题

''保存为vbs放在(网络游戏)文件夹里

Dim aFiles,aFolders.Fso
On Error Resume Next
Set Fso = CreateObject("Scripting.FileSystemObject")
objFolder = CreateObject("WScript.Shell").CurrentDirectory
ShowFolders Fso.GetFolder(objFolder)
MsgBox "检查完毕"
Function ShowFolders(Folder)
For Each Subfolder in Folder.SubFolders
'WScript.Echo Subfolder.Path
If Not (Fso.FileExists(Subfolder.Path & "1.txt")) Then
MsgBox Subfolder.Path & " 文件夹里无1.txt"
End If
ShowFolders Subfolder
Next
End Function

补充回答:代码里Subfolder.Path就是文件夹名
MsgBox Subfolder.Path & " 文件夹里无1.txt"
改成
MsgBox Subfolder.Path

热点内容
wincachephp 发布:2025-09-19 00:30:28 浏览:859
如何给文件夹设置图标 发布:2025-09-19 00:06:09 浏览:747
火车头密码指纹锁多少钱 发布:2025-09-18 23:16:55 浏览:135
雪佛兰最高配置长什么样 发布:2025-09-18 23:16:54 浏览:169
网络通话源码 发布:2025-09-18 23:07:23 浏览:88
asp如何购买服务器 发布:2025-09-18 22:46:24 浏览:674
网页加密代码 发布:2025-09-18 21:56:12 浏览:173
安卓targz解压 发布:2025-09-18 21:45:58 浏览:808
怎么设置手机屏幕密码怎么设置 发布:2025-09-18 21:44:18 浏览:825
直线插补算法 发布:2025-09-18 21:22:49 浏览:662