資源簡介
fixdump工具,mfocgui類dump文件修復 fixdump,讓1k文件補滿4k

代碼片段和文件信息
using?System;
using?System.IO;
namespace?fixdump
{
????class?Program
????{
????????static?void?Main(string[]?args)
????????{
????????????if?(args.Length?==?1)
????????????{
????????????????string?strFilePath?=?args[0];
????????????????if?(File.Exists(strFilePath))
????????????????{
????????????????????FileStream?fsA?=?new?FileStream(strFilePath?FileMode.Open);
????????????????????if?(fsA.Length?!=?1024)
????????????????????{
????????????????????????Console.WriteLine(“文件不匹配“);
????????????????????}
????????????????????else
????????????????????{
????????????????????????byte[]?byteArray?=?new?byte[3072];
????????????????????????fsA.Seek(1024?SeekOrigin.Current);
????????????????????????fsA.Write(byteArray?0?byteArray.Length);
????????????????????????fsA.Close();
????????????????????????Console.WriteLine(“修復OK:??“?+?strFilePath);
????????????????????}
????????????????}
????????????????else
????????????????{
????????????????????Console.WriteLine(“無法找到文件:???“?+?strFilePath);
????????????????}
????????????}
????????????else
????????????{
????????????????Console.WriteLine(“---修復mfocGUI?V29轉儲文件大小1k為4k---“);
????????????????Console.WriteLine(“eg:?fixdump.exe?c:\\1k.dump“);
????????????}
????????}
????}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????5120??2011-10-13?11:27??fixdump.exe
?????目錄???????????0??2011-10-13?11:29??src\
?????文件????????1311??2011-10-13?11:27??src\Program.cs
- 上一篇:Max262應用程序
- 下一篇:史上最牛錄屏軟件 壓縮功能超強 2小時200M左右
評論
共有 條評論