压缩文件并提取文件I. [英] Compress File and Extract File I

查看:80
本文介绍了压缩文件并提取文件I.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我点击Extract here,我收到错误..............



请解决此错误。



File.Move(fileToCompress.FullName + - + DateTime.Now.ToString(ddMMyyyy)+。zip,fileToCompress.FullName +。zip) ;

解决方案

试试这段代码。





 File.Move(Path.GetFileNameWithoutExtension(fileToCompress.FullName)+    -  + DateTime .Now.ToString(  ddMMyyyy)+  。zip,Path.GetFileNameWithoutExtension(fileToCompress.FullName)e +  拉链); 


If I clicked on Extract here I got error ..............

Please Solved this error.

File.Move(fileToCompress.FullName + "-" + DateTime.Now.ToString("ddMMyyyy") + ".zip", fileToCompress.FullName + ".zip");

解决方案

try this code.


File.Move(Path.GetFileNameWithoutExtension(fileToCompress.FullName) + "-" + DateTime.Now.ToString("ddMMyyyy") + ".zip", Path.GetFileNameWithoutExtension(fileToCompress.FullName)e + ".zip");


这篇关于压缩文件并提取文件I.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆