`
jason9657
  • 浏览: 6228 次
社区版块
存档分类
最新评论

create Txt and zip

 
阅读更多
call createTxtfileWithSeq()
call zipFile("D:\TestData\MPCI\80\vbs")

Function createTxtfileWithSeq()
set fso=createobject("Scripting.filesystemobject")
for i=0 to 3
	for j=0 to 9
		if i=0 and j=0 then
			j=j+1
			end if 
		if i=3 and  j=2 then 
			exit for
			exit for
			end if 
		set myfile=fso.createtextfile("D:\TestData\MPCI\80\vbs\ycap_ls_201303"&i&j&".txt",True)
	next
next
myfile.close
end function

Function zipFile(path)
dim objfolder
dim folderpath
dim folderinfo
folderpath=path
set objfolder=createobject("scripting.filesystemobject")
set folderinfo=objfolder.getfolder(folderpath)
set ffiles=folderinfo.files
for each f1 in ffiles
	set oExec = createobject("wscript.shell").exec("7z a -tgzip "&folderpath&"\"&f1.name&".gz "&folderpath&"\"&f1.name)
	'msgbox folderpath&"\"&f1.name
next
end function

分享到:
评论

相关推荐

    VclZip pro v3.10.1

    Ofcourse when using regular TStream decendants in D4,4,BCB4,and 5, you cannot create Zip64 archives. If you use Delphi 6, 7, or BCB 6, you don't have to worry about any of this as the normal TSTream ...

    fine_tuning_data.zip 可直接用bert进行微调的中文情绪数据

    """Creates examples for the training and dev sets.""" examples = [] for (i, line) in enumerate(lines): if i == 0: continue guid = "%s-%s" % (set_type, i) if set_type == "test": label = "0" ...

    基于NeRF实现手机拍摄照片的三维重建python源码(高分毕业设计).zip

    It will create an experiment directory in `./logs`, and store the checkpoints and rendering examples there. 测试 Once you have the experiment directory (downloaded or trained on your own) in `./logs...

    Adafruit-GFX-Library-master.zip

    Otherwise, to download, click the DOWNLOAD ZIP button, uncompress and rename the uncompressed folder Adafruit_GFX. Confirm that the Adafruit_GFX folder contains Adafruit_GFX.cpp and Adafruit_GFX.h. ...

    VB编程资源大全(英文源码 其它)

    It will allow you to graphically design your message box, specify how you want it to look and will create the source code for you and put it into the clipboard where you <END><br>47,vb2word.zip ...

    VB编程资源大全(英文源码 控制)

    It can post messages and recieve messages through the internet.<END><br>8 , optiondemo.zip This example demonstrates how to create realistic Option Buttons in Visual Basic.<END><br>9 , mencrypt....

    VB编程资源大全(英文源码 控件)

    <END><br>6 , vbo_controlframe.zip Create your own system button such as a Maximize, Minimize, Close, and many others with ease! <END><br>7 , vbo_ctextbox.zip This class makes using the Textbox ...

    sockserver_and_sockclient_of_windows.zip_Server_sock server_sock

    本文将深入探讨"sockserver_and_sockclient_of_windows.zip"这个压缩包所包含的知识点,主要涉及的是Server_Sock服务器端和Client_Sock客户端的实现。这个压缩包提供了一个简单的模板,用于学习和参考Windows环境下...

    基于NeRF和手机拍摄物体图片的三维重建python源码+数据集+操作说明.zip

    It will create an experiment directory in `./logs`, and store the checkpoints and rendering examples there. 测试 Once you have the experiment directory (downloaded or trained on your own) in `./logs...

    VB编程资源大全(英文源码 DirectX)

    ish), just read the readme.txt in the zip<END><br>4,CODE_UPLOAD76727112000.zip This shows you the basics of using Direct Draw and Direct Sound. It shows you how to create a sprite and move it ...

    winscp570source.zip

    /deployment Inno Setup script to create setup package (see /deployment/readme) /dotnet source code of WinSCP .NET assembly /libs 3rd party libraries WinSCP homepage is http://winscp.net/ See the ...

    VB编程资源大全(英文源码 API)

    It shows how to create, store and save a password to the registry and also encrypts it to keep out prying eyes.<END><br>32,delay.zip This is a rough translation of the GetTickCount API and ...

    VB编程资源大全(英文源码 文件)

    Does NOT use Excel automation.<END><br>22 , Protect.zip Protect your folders and applications,Please read the Readme.txt file.<END><br>23 , SplitFile.zip File Splitter enables you to split ...

    SQL入门之样例表脚本(MySQL (and MariaDB) SQL scripts).zip

    1. create.text包含创建5个数据库表(包括定义所有主键和外键约束)的SQL语句。 2. populate.txt包含用来填充这些表的SQL INSERT语句。 这些文件中的SQL语句依赖于具体的DBMS,因此应该执行适合于你的DBMS的那个。...

    基于C语言实现的建立基于磁盘存储设备的 FAT 文件系统源码+项目说明.zip

    touch --create file create a directory at current directory example touch fs.txt virus --virus file block_id create a virus at current directory, example virus fs.txt block_id check --check check ...

    Visual C++ 编程资源大全(英文源码 系统)

    waiter.zip Learn how to create new processes and how to efficiently manage them.(13KB)<END><br>50,SharedMemIpc_demo.zip A client-server model using shared memory for interprocess communication...

    rslt.zip_ANN

    描述提到"this code is matlab and create ann.",意味着这个压缩包内包含的是使用MATLAB编程语言编写的创建神经网络的代码。 MATLAB是一种广泛应用于科学计算、数据分析和工程应用的高级编程环境,尤其在处理数值...

    fonts_2.zip

    5. Create fonts.scale and fonts.dir # mkfontscale && mkfontdir # fc-cache 6. Add the new font directory to the X11 font path # chkfontpath --add /usr/share/fonts/truetype 7. Restart X font server # /...

    微软开源的命令行外壳和脚本环境 PowerShell.zip

    Ctrl L, resetcls, clearClear screenmkdirNew-Item -ItemType DirectoryCreate a new foldertouch test.txtNew-Item -Path test.txtCreate a new empty filecat test1.txt test2.txtGet-Content test1.txt, test2....

    基于C语言开发的FAT文件系统源码+项目说明+实验报告(小组课程设计).zip

    基于C语言开发的FAT 文件系统源码+项目说明+实验报告(小组课程设计).zip 【1】项目代码完整且功能都验证ok,确保稳定可靠运行后才上传。欢迎下载使用!在使用过程中,如有问题或建议,请及时私信沟通,帮助解答。 ...

Global site tag (gtag.js) - Google Analytics