Locate a File Using a File Open Dialog Box

2016-02-19 09:25 3 1 收藏

想要天天向上,就要懂得享受学习。图老师为大家推荐Locate a File Using a File Open Dialog Box,精彩的内容需要你们用心的阅读。还在等什么快点来看看吧!

【 tulaoshi.com - Web开发 】

Demonstration script that displays a File Open dialog box (open to the folder C:Scripts), and then echoes back the name of the selected file.  Supported Platforms

Windows Server 2003
 No

Windows XP
 Yes

Windows 2000
 No

Windows NT 4.0
 No

Windows 98
 No


Script Code

代码如下:

Set objDialog = CreateObject("UserAccounts.CommonDialog") 

objDialog.Filter = "VBScript Scripts|*.vbs|All Files|*.*" 
objDialog.FilterIndex = 1 
objDialog.InitialDir = "C:Scripts" 
intResult = objDialog.ShowOpen 

If intResult = 0 Then 
    Wscript.Quit 
Else 
    Wscript.Echo objDialog.FileName 
End If 

来源:https://www.tulaoshi.com/n/20160219/1590706.html

延伸阅读
标签: Web开发
Description Adds the BITS_Update.dll extension file.  代码如下: strComputer = "." Set objWMIService = GetObject _     ("winmgmts:{authenticationLevel=pktPrivacy}\\" _         & strComput...
烤罗非鱼file正宗做法/步骤: 烤箱预热170左右。罗非鱼解冻好,烤盘垫上锡纸,鱼放上去,拿牙签或者刀(还得洗刀,多麻烦,牙签得了)戳戳戳。 可以倒大约1tsp的橄榄油,但是其实我第二次烤连油都省了,没吃出啥不一样的来... 海盐,黑胡椒,现研磨,撒适量。后来要是想配什么酱汁吃,就不...
无论学习那种语言都难免要接触到文件系统,要经常和文件打交道。Java当然也不例外,有些网友觉得IO的设计很烦琐,有的时候我也有这样的感觉,其实用的熟练了,倒是觉得这个东西还是挺方便的。在介绍Java IO之前首先介绍一下非常重要的一个类File。 在看到这个类的名字后你一定认为它代表一个文件,事实上这样认为并不准确,因为Java中...
因为硬盘满了,mysql启动不起来了。 登录上去看了一下,发现原因。 删除mysql的日志文件,重启mysql发现错误:Starting MySQL.Manager of pid-file quit without updating file.[FAILED] 网上有不少这个原因的解释,但是都不是我想说的。我要说的原因其实很白痴:data/mysql-bin.index没有删除,data/mysql-bin.index是存放日志文件索引的...
标签: 服务器
Linux系统中file命令的使用详解   命令简介: 该命令用来识别文件类型,也可用来辨别一些文件的编码格式。它是通过查看文件的头部信息来获取文件类型,而不是像Windows通过扩展名来确定文件类型的。 执行权限 :All User 指令所在路径:/usr/bin/file 命令语法: 代码如下: file [ -bchikLnNprsvz ] [ ...

经验教程

288

收藏

66

精华推荐

微博分享 QQ分享 QQ空间 手机页面 收藏网站 回到头部