【求助】文字檔裡有辦法做轉檔嗎?例:每個檔裡的28改成666



贊助商連結


范靜善
2005-11-24, 11:12 PM
請問各位~
我現在有許多小檔(.xml),每一個檔裡面有特定的數字(文字)要轉換成別的數字(文字),
(例如:每個檔裡的"28"都要改成"666", 以及"29"要改成"777"..等等)
我有用Ultra edit試著用取代,可以。
但是∼小檔案太多,會很費時,
所以才想來問問看有沒有辦法自己寫一個程式
(請問有現成的轉檔軟體嗎?)

若是沒有現成的程式,那要用什麼軟體才能寫出這種轉檔的程式呢? 
感謝感謝 ~~ :)

贊助商連結


hpo14
2005-11-24, 11:21 PM
ultraedit 的話, 您可以使用巨集來作這件事情.....

或是這個小軟體, 他是英文的...
SCR 1.0 右鍵存新檔 (http://theloop.myweb.hinet.net/scr.exe)
http://www.nonags.com/nonags/imgs/yb.gifUpdated: May 08, 2002
http://www.nonags.com/nonags/imgs/yb.gifHomepage (http://www.soft-central.net/)
http://www.nonags.com/nonags/imgs/yb.gifAuthor: Soft-Central
http://www.nonags.com/nonags/imgs/yb.gifDescription: SCR is a search-and-replace program. Use SCR to quickly replace text in all your documents within seconds. SCR supports previewing, case-sensitivity and various search options. This program is fast and easy to use, making it one of the most powerful search-and-replace utilities available. In addition to replacement of text within files, SCR supports changing text within filenames too. With SCR it's possible to rename all files on your hard disk within seconds. SCR takes only 32 KB of hard disk space.

HarrisonLin
2005-11-24, 11:29 PM
UE 選單 -> 搜尋 -> 多重檔案取代可以完成這個任務! :)

范靜善
2005-11-25, 08:07 PM
感謝二位的回覆~~ 感謝~~ :circle:

今早去公司稍微試了一下,沒想到在Ultra edit裡還有那麼好用的功能,
應該是沒問題了,太感謝HarrisonLin提供的方法~~ :jocky: