一键在指定目录新建TXT文件脚本

运行环境:分辨率:1280×800 色深:32位 操作系统:Windows 7 Ultimate 按键精灵版本:9.10.10413

@kakane 2011/12/21

//<>==========================定义变量  
UserVar File_Path=0 "文件路径"  
UserVar File_Name=0 "文件名称"  
//<>===========================变量赋值  
File_Path = "F:\沉淀目录\"  
File_Name = "【6-WEB开发】.txt"  
  
Is_File = Plugin.File.ExistFile(File_Path & File_Name)  
  
If Is_File Then   
    MessageBox "目标目录存在该文件"  
    EndScript     
Else  
    set fso=CreateObject("Scripting.FileSystemObject")  
    set myfile=fso.createtextfile(File_Path & File_Name)  
End If  
EndScript
相关文件下载地址
©下载资源版权归作者所有;本站所有资源均来源于网络,仅供学习使用,请支持正版!

一键在指定目录新建TXT文件脚本》有0个想法

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注