WScript.Shell对象SpecialFolders属性-易勋
Access软件网QQ交流学习群(群号码198465573),欢迎您的加入!
首页 >技术文章> 源码示例


WScript.Shell对象SpecialFolders属性

发表时间:2017/4/30 10:39:39 评论(0) 浏览(9819)  评论 | 加入收藏 | 复制
   
摘 要:WScript.Shell对象SpecialFolders属性
正 文:

WshShell对象的SpecialFolders属性返WshSpecialFolders 对象,该对象是一个特殊文件夹集合,其中包含整套Windows特殊文件夹

 

Sub SpecialFoldersInfo()

    Dim sf As Object

    Set sf = CreateObject("Wscript.shell").SpecialFolders

   

    Debug.Print "公共桌面: " & sf("AllUsersDesktop")

    Debug.Print "公共程式: " & sf("AllUsersStartMenu")

    Debug.Print "公共程序: " & sf("AllUsersPrograms")

    Debug.Print "公共启动: " & sf("AllUsersStartup")

    Debug.Print "桌面: " & sf("Desktop")

    Debug.Print "收藏: " & sf("Favorites")

    Debug.Print "字体: " & sf("Fonts")

    Debug.Print "我的文档: " & sf("MyDocuments")

    Debug.Print "网络: " & sf("NetHood")

    Debug.Print "打印机: " & sf("PrintHood")

    Debug.Print "程序: " & sf("Programs")

    Debug.Print "最近: " & sf("Recent")

    Debug.Print "发给: " & sf("SendTo")

    Debug.Print "开始菜单: " & sf("StartMenu")

    Debug.Print "启动: " & sf("Startup")

    Debug.Print "模板: " & sf("Templates")

    Debug.Print "应用程序数据: " & sf("AppData")

 

End Sub



Access软件网交流QQ群(群号:198465573)
 
 相关文章
用Shell打开文件路径及文件名有空格的文件方法  【wsl  2012/4/3】
【Access文章】VBA编程技巧之Shell函数妙用  【缪炜  2014/7/11】
Excel VBA--使用shell命令ping单元格里面的IP  【欢乐小爪  2014/10/30】
Wscript.Shell 对象详细介绍  【易勋  2017/4/30】
常见问答
技术分类
相关资源
文章搜索
关于作者

易勋

文章分类

文章存档

友情链接