Supported Plat " /> 欧美日本一区二区,精品午夜一区二区三区,亚洲大胆美女视频

色尼玛亚洲综合影院,亚洲3atv精品一区二区三区,麻豆freexxxx性91精品,欧美在线91

Save a File Using a File Save Dialog Box

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 

JavaScript技術Save a File Using a File Save Dialog Box,轉載需保留來源!

鄭重聲明:本文版權歸原作者所有,轉載文章僅為傳播更多信息之目的,如作者信息標記有誤,請第一時間聯系我們修改或刪除,多謝。

主站蜘蛛池模板: 四平市| 宜君县| 山阳县| 大竹县| 洛阳市| 涟水县| 武隆县| 防城港市| 开鲁县| 旬阳县| 墨脱县| 达拉特旗| 平泉县| 德清县| 湘阴县| 乐亭县| 洪雅县| 阿勒泰市| 钟祥市| 城口县| 鲁山县| 辉县市| 逊克县| 吉林市| 蒙山县| 平乐县| 五原县| 乌鲁木齐市| 花莲市| 贡觉县| 柳河县| 合作市| 新巴尔虎右旗| 开化县| 镇雄县| 金塔县| 河津市| 准格尔旗| 武陟县| 惠安县| 昌乐县|