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

熱點內容
asp如何購買伺服器 發布:2025-09-18 22:46:24 瀏覽:664
網頁加密代碼 發布:2025-09-18 21:56:12 瀏覽:165
安卓targz解壓 發布:2025-09-18 21:45:58 瀏覽:802
怎麼設置手機屏幕密碼怎麼設置 發布:2025-09-18 21:44:18 瀏覽:819
直線插補演算法 發布:2025-09-18 21:22:49 瀏覽:656
矩陣內的演算法 發布:2025-09-18 20:55:07 瀏覽:573
android網路優化 發布:2025-09-18 20:53:19 瀏覽:219
看交換機配置哪些是默認的 發布:2025-09-18 20:46:59 瀏覽:621
在釘釘上如何獲取自己的密碼 發布:2025-09-18 20:46:12 瀏覽:856
pythonifthenelse 發布:2025-09-18 20:33:19 瀏覽:917