您好,欢迎访问一九零五行业门户网

Locate a File Using a File Open Dialog Box_javascript技巧

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
其它类似信息

推荐信息