因工作中要对数据打包,顺便研究了下WinRAR的命令行模式,自己写了些例子,基本用法如下: 测试压缩文件准备:文件夹test_data,内部包含子文件夹,分别存放了一些*.log和*.txt文件. 测试代码如下: rem 压缩全部文件,按类型压缩,zip打包 WinRAR.exe a num_all.zip .\test_data\ WinRAR.exe a num_txt.zip .\test_data\num*.txt WinRAR.exe a num_log.zip .\test_data
调用winRAR进行压缩 using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace testZIPEXE { class Program { static void Main(string[] args) { String exePath = "C:\\Program Files (x86)\\WinRA
WinRAR也可以管理我的桌面时间长了,桌面上堆的东西实在太多,平时该如何管理呢?安装了WinRAR的朋友可以请它来帮忙,用它管理清除无用的桌面文件或图标. 以XP系统为例,系统所在目录是“c:\windows”,假设用户名为“user”,桌面上的图标和文件都在“c:\documents and settings\user\桌面”文件夹中.确定桌面上需要保存的图标和文件,在记事本中撰写文件列表,如: c:\documents and settings\user\桌面\qq.lnk 文件列表制作完
//------------------------------------------------------------------------------------- // All Rights Reserved , Copyright (C) 2016 , ZTO , Ltd . //------------------------------------------------------------------------------------- using System; us