当前位置:首页 » 文件管理 » 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

热点内容
plc和ps哪个更吃配置 发布:2025-05-09 09:54:34 浏览:317
手机为什么一直弹出输入app的登录密码 发布:2025-05-09 09:50:22 浏览:476
普高学编程 发布:2025-05-09 09:42:29 浏览:736
汽车安全性能有哪些配置 发布:2025-05-09 09:29:53 浏览:375
可编程接口 发布:2025-05-09 09:29:09 浏览:176
计算与表示存储容量的基本单位是 发布:2025-05-09 09:18:26 浏览:713
查看所有linux命令 发布:2025-05-09 09:14:16 浏览:343
王牌竞速最低要什么配置的手机 发布:2025-05-09 09:14:06 浏览:999
服务器如何飞起来 发布:2025-05-09 09:09:19 浏览:868
宣城dns的服务器地址是多少 发布:2025-05-09 09:08:38 浏览:735