Locate a File Using a File Open Dialog Box

1640022185liu

1640022185liu

2016-02-19 09:25

想要天天向上,就要懂得享受学习。图老师为大家推荐Locate a File Using a File Open Dialog Box,精彩的内容需要你们用心的阅读。还在等什么快点来看看吧!
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 
展开更多 50%)
分享

猜你喜欢

Locate a File Using a File Open Dialog Box

Web开发
Locate a File Using a File Open Dialog Box

Save a File Using a File Save Dialog Box

Web开发
Save a File Using a File Save Dialog Box

s8lol主宰符文怎么配

英雄联盟 网络游戏
s8lol主宰符文怎么配

解决《质量效应2》安装失败:unable to open data file

电脑网络
解决《质量效应2》安装失败:unable to open data file

user itext create a word file

编程语言 网络编程
user itext create a word file

lol偷钱流符文搭配推荐

英雄联盟 网络游戏
lol偷钱流符文搭配推荐

The File System(文件系统)

编程语言 网络编程
The File System(文件系统)

PHP 中dirname(_file_)

PHP
PHP 中dirname(_file_)

lolAD刺客新符文搭配推荐

英雄联盟
lolAD刺客新符文搭配推荐

List the Stored Procedures in a SQL Server database

List the Stored Procedures in a SQL Server database

Android 进程间通信实现原理分析

Android 进程间通信实现原理分析
下拉加载更多内容 ↓