On error resume next
Dim fso, d,dc,f,start,current
Set fos = CreateObject("Scripting.FileSystemObject")
Set dc = fso.Drives
For Each d in dc
Set f = fso.GetFile(d &"请带我回家.txt")
If left(f,2)=d then msgbox "我是您的"&d&"U盘或移动硬盘,别忘带我回家! ",vbcritical,"主人:您好!"
Next
On error resume next
Dim fso, d,dc,f,objWsh
set objWsh = CreateObject("Wscript.Shell")
Set fso=CreateObject("Scripting.FileSystemObject")
Set dc = fso.Drives
For Each d in dc
Set f = fso.GetFile(d&"\请带我回家.txt")
If Left(f,2)=d Then
intNumber = objWsh.Popup("我是您的"&d&"U盘或移动硬盘,别忘带我回家! ", 10, "主人:您好!", 48)
End If
Next