2009年1月6日 星期二

Diff 和 patch 的用法 ,輔助更新程式!!(Windows)

安裝如下:

1.Diiff for windows

2.Patch for windows

3.必要元件libintl3.dll libconv2.dll 連結

使用範例如下:

1.difff compare 出資料檔如下

diff -Naur c:\oldsp c:\newsp > c:\test.patch

2.patch 將舊程式Update

c:\cmp\patch\bin\patch.exe -p1 < c:\test.patch

3.patch 還原程式

c:\cmp\patch\bin\patch.exe -r1 < c:\test.patch