婷婷综合国产,91蜜桃婷婷狠狠久久综合9色 ,九九九九九精品,国产综合av

主頁 > 知識庫 > vbs選擇文件夾效果代碼

vbs選擇文件夾效果代碼

熱門標簽:天津智能外呼系統排名 龍巖400電話申請 企業400電話辦理價錢低 智云億呼電話機器人 外呼系統說話聲音小怎么辦 上海辦理400電話選號 外呼系統群 機器人打電銷適用于美業嗎 墨西哥地圖標注app
不用組件的話有兩種辦法: 

set objFile = CreateObject("SAFRCFileDlg.FileOpen") 
Set objShell = CreateObject("Shell.Application") 

本blog里都有示例。 

如果調用vb組件,可以是: 

flag = h200 
whichone = OpenFile("Choose a File!", "C:\", "Everything|*.*|TextFiles|*.TXT|Word-Documents|*.DOC", 2, flag) 
MsgBox "Raw data returned: "  whichone 
' Split up multi selection result: 
' space is used as separator: 
whichone = Split(whichone, " ") 
' field index 0 contains path information: 
path = whichone(0) 
' list all the files: 
' how many files were selected? 
filecount = UBound(whichone) 
if filecount=0 then 
' just one file selected! 
MsgBox "You selected one file: "  whichone(0) 
' check status of Read Only checkbox 
' is bit 1 set or cleared? 
' works only if just one file was selected! 
MsgBox "Returned flag: "  flag 
if (flag and 1) then 
' (flag and 1)>0, transforms to true 
' bit is set! 
MsgBox "ReadOnly selected!" 
else 
MsgBox "ReadOnly not selected!" 
end If 
' check whether selected file is of default type (txt)  
if (flag and 1024) then 
MsgBox "selected file is no txt file!" 
else 
MsgBox "selected file is of default type!" 
end if 
else 
' more than one file selected! 
MsgBox "You selected "  filecount  " files!" 
for x = 1 to UBound(whichone) 
list = list  path  whichone(x)  vbCr 
next 
MsgBox list 
end If 

function OpenFile(title, dir, filter, index, flags) 
set comdlg = CreateObject("MSComDlg.CommonDialog") 
comdlg.filter = filter 
comdlg.FilterIndex = index 
comdlg.Flags = flags 
comdlg.MaxFileSize = 260 
comdlg.CancelError = false 
comdlg.DialogTitle = title 
comdlg.InitDir = dir 
' set txt as default 
comdlg.DefaultExt = "txt" 
comdlg.ShowOpen 
OpenFile = comdlg.filename 
' important: return flag status so your main script can 
' check it: 
flags = comdlg.Flags 
end function 

組件相關文件下載 http://xiazai.jb51.net/jbtools/vb6controls.rar

標簽:青島 齊齊哈爾 黃山 麗水 鄂爾多斯 承德 錫林郭勒盟 阜新

巨人網絡通訊聲明:本文標題《vbs選擇文件夾效果代碼》,本文關鍵詞  vbs,選擇,文件夾,效果,代碼,;如發現本文內容存在版權問題,煩請提供相關信息告之我們,我們將及時溝通與處理。本站內容系統采集于網絡,涉及言論、版權與本站無關。
  • 相關文章
  • 下面列出與本文章《vbs選擇文件夾效果代碼》相關的同類信息!
  • 本頁收集關于vbs選擇文件夾效果代碼的相關信息資訊供網民參考!
  • 推薦文章

    上一篇:用vbs實現選擇顏色

    下一篇:vbs的sort排序

    主站蜘蛛池模板: 夹江县| 南乐县| 安新县| 夏津县| 永城市| 南昌县| 甘谷县| 稷山县| 安图县| 衡南县| 思南县| 綦江县| 始兴县| 偃师市| 郎溪县| 台北市| 镇江市| 洛扎县| 中超| 陆河县| 宁南县| 鲜城| 健康| 雅安市| 甘谷县| 伊宁县| 遂宁市| 南宁市| 河北区| 无锡市| 商城县| 彰化县| 个旧市| 磐石市| 凤城市| 山东省| 三台县| 白银市| 辽阳县| 山西省| 南昌市|