国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 編程 > JavaScript > 正文

Save a File Using a File Save Dialog Box

2019-11-21 02:02:26
字體:
來源:轉載
供稿:網友
Demonstration script that allows you to enter a file name in a File Save dialog box, and then saves a sample text file (consisting entirely of the current date) under that file name. 

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("SAFRCFileDlg.FileSave") 

objDialog.FileName = "C:/Scripts/Script1.vbs" 
objDialog.FileType = "VBScript Script" 
intReturn = objDialog.OpenFileSaveDlg 

If intReturn Then 
    Set objFSO = CreateObject("Scripting.FileSystemObject") 
    Set objFile = objFSO.CreateTextFile(objDialog.FileName) 
    objFile.WriteLine Date 
    objFile.Close 
Else 
    Wscript.Quit 
End If 
發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 南江县| 遂宁市| 兴城市| 洪洞县| 理塘县| 浦城县| 房山区| 陈巴尔虎旗| 托克逊县| 准格尔旗| 邵阳县| 镇原县| 长武县| 永胜县| 吉木萨尔县| 焉耆| 苍山县| 苗栗市| 磴口县| 京山县| 南京市| 万山特区| 安化县| 东明县| 响水县| 恩平市| 南乐县| 恩施市| 阿荣旗| 固原市| 会理县| 松滋市| 武宣县| 哈尔滨市| 安西县| 会泽县| 汉寿县| 乌鲁木齐县| 吉隆县| 哈巴河县| 房产|