vb.net怎么压缩文件 vb压缩包解压

VB.net 如何将TXT文件转换压缩成.gz文件手机敲很累vb.net怎么压缩文件的vb.net怎么压缩文件!一定要给分啊vb.net怎么压缩文件!格式是vb.net怎么压缩文件:tar 选项 文件.选项有 -c:产生打包文件 -v:显示详细信息 -f:指定压缩后vb.net怎么压缩文件的文件名 -z:打包同时压缩!举个例子吧!将目录my打包并压缩成my.tar.gz就这样tar -zcvf my.tar.gz my
求软件压缩工具,本人是学VB.NET的 , 现在做了一个软件想把它压缩成.exe文件那不是压缩vb.net怎么压缩文件,是编译,默认是debug模式,编译生成后会在bin里vb.net怎么压缩文件的debug里,如果选择release模式,会生成到bin里的release里 。
想要安装文件,不需要其它工具,在VS里vb.net怎么压缩文件你就可以新建一个安装项目 , 然后把编译好的文件加入进来,会自动检查依赖的文件 , 然后生成一下,就会在安装项目文件夹里的bin/release或debug生成vb.net怎么压缩文件你要的安装文件 。
vb.net 如何压缩、解压缩文件1、你先搞懂winrar.exe的解压参数格式,然后把winrar.exe和相关文件加入到资源文件中 , 然后调用 资源文件中的winrar.exe
2、弄明白rar/zip文件解压/压缩方法和格式,自己写程序(可能会比较麻烦)
vb.net如何将JPG文件缩放至不大于指定的字节数1.我有个思路可以尝试一下:把一张字节数在280-300K的图片用PS打开看看像素大?。?
2.定义一个新的位图,指定像素大小为上面得到的数据;
3.读取你需要修改大小的JPG文件 , 然后按指定大小复制到上面新建的位图,并保存为JPG格式
用vb.net对sql多数据库压缩备份为一个文件using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.IO;
using System.Text;
using _5dRss.Const;
using _5dRss.lib.Data.Tool;
public partial class admin_admin_dbmanage : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//生成备份文件列表
ListBackupFiles();
if (!Page.IsPostBack)
{
Showmsg.Visible = false;
//数据库路径
lilDBPath.Text = HttpContext.Current.Request.PhysicalApplicationPath"App_Data\\"ConfigurationSettings.AppSettings["DBFile"];
//新建一个 FileInfo 对象vb.net怎么压缩文件,并获得数据库文件vb.net怎么压缩文件的大小,然后转换单位为KB
FileInfo myFileInfo = new FileInfo(lilDBPath.Text);
lilDBSize.Text = Convert.ToString(myFileInfo.Length/1024)" KB";
//如果两个参数都不为空 , 则继续执行
if (Request.QueryString["cmd"] != nullRequest.QueryString["source"] != null)
{
//备份数据库原文件名
string sourceFileName = Request.QueryString["source"];
【vb.net怎么压缩文件 vb压缩包解压】//如果 cmd 参数为 DelFile
if (Request.QueryString["cmd"].Equals("DelFile"))
{
//删除备份数据库文件
File.Delete(HttpContext.Current.Request.PhysicalApplicationPath"Backup\\"sourceFileName);
//刷新备份文件列表
ListBackupFiles();
Showmsg.Visible = true;
Showmsg.Text = "div align='center' style='margin-bottom:8px;'img src='https://www.04ip.com/post/images/aL.gif' style='margin-bottom:-6px;'/span class='alertTxt'删除备份数据库成功!/spanimg src='https://www.04ip.com/post/images/aR.gif' style='margin-bottom:-6px;'//div";
}
//如果 cmd 参数为 Restore
if (Request.QueryString["cmd"].Equals("Restore"))
{
//用备份文件覆盖原文件
File.Copy(HttpContext.Current.Request.PhysicalApplicationPath"Backup\\"sourceFileName, HttpContext.Current.Request.PhysicalApplicationPath"App_Data\\"ConfigurationSettings.AppSettings["DBFile"], true);
//刷新备份文件列表
ListBackupFiles();
Showmsg.Visible = true;
Showmsg.Text = "div align='center' style='margin-bottom:8px;'img src='https://www.04ip.com/post/images/aL.gif' style='margin-bottom:-6px;'/span class='alertTxt'还原备份数据库成功!/spanimg src='https://www.04ip.com/post/images/aR.gif' style='margin-bottom:-6px;'//div";
}
}
}
}
protected void lnkbtnCompactDB_Click(object sender, EventArgs e)
{
//压缩修复数据库
AccessDBtool.CompactAccessDB(SysConfig.ConnectionString, HttpContext.Current.Request.PhysicalApplicationPath"App_Data\\"ConfigurationSettings.AppSettings["DBFile"]);
Showmsg.Visible = true;
Showmsg.Text = "div align='center' style='margin-bottom:8px;'img src='https://www.04ip.com/post/images/aL.gif' style='margin-bottom:-6px;'/span class='alertTxt'压缩修复数据库成功!/spanimg src='https://www.04ip.com/post/images/aR.gif' style='margin-bottom:-6px;'//div";
}
protected void lnkbtnBackupDB_Click(object sender, EventArgs e)
{
string sourceFileName = HttpContext.Current.Request.PhysicalApplicationPath"App_Data\\"ConfigurationSettings.AppSettings["DBFile"];
string destFileName = HttpContext.Current.Request.PhysicalApplicationPath"Backup\\""Backup_";
destFileName= DateTime.Now.ToString("yyyyMMddHHmmss");
destFileName= ".mbk";
//将数据库文件Copy到Backup目录,如果有重名文件就覆盖原文件
File.Copy(sourceFileName, destFileName, true);
//生成备份文件列表
ListBackupFiles();
Showmsg.Visible = true;
Showmsg.Text = "div align='center' style='margin-bottom:8px;'img src='https://www.04ip.com/post/images/aL.gif' style='margin-bottom:-6px;'/span class='alertTxt'备份数据库成功!/spanimg src='https://www.04ip.com/post/images/aR.gif' style='margin-bottom:-6px;'//div";
}
/// summary
/// 生成备份文件列表
/// /summary
/// returns文件列表,文件详细信息及操作选项vb.net怎么压缩文件的HTML代码/returns
public void ListBackupFiles()
{
//如果目录不存在则创建次目录
if (!Directory.Exists(HttpContext.Current.Request.PhysicalApplicationPath"Backup\\"))
Directory.CreateDirectory(HttpContext.Current.Request.PhysicalApplicationPath"Backup\\");
DirectoryInfo mydir = new DirectoryInfo(HttpContext.Current.Request.PhysicalApplicationPath"Backup\\");
StringBuilder sb = new StringBuilder();
foreach (FileInfo f in mydir.GetFiles())
{
sb.Append("a href='https://www.04ip.com/post/backup/"f.Name"' target='_blank'img border='0' src='https://www.04ip.com/post/images/mdb.gif' style='margin:4px 3px -3px 0px'/"f.Name"/aa href='https://www.04ip.com/post/?cmd=DelFilesource="f.Name"' title='删除备份文件'删除/a | a href='https://www.04ip.com/post/?cmd=Restoresource="f.Name"' title='删除备份文件'还原数据库/a | "f.Length/1024" KB | "f.CreationTime"br /");
}
lilBackupFileList.Text = sb.ToString();
}
}
把下面这句换成vb.net怎么压缩文件你的数据库地址vb.net怎么压缩文件:
//数据库路径
//lilDBPath.Text = HttpContext.Current.Request.PhysicalApplicationPath"App_Data\\"ConfigurationSettings.AppSettings["DBFile"];
vb.net怎么压缩文件的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于vb压缩包解压、vb.net怎么压缩文件的信息别忘了在本站进行查找喔 。

    推荐阅读