2011年7月18日

[ MSfix ] 修正 Microsoft AppLocale 後的 pAppLocale.msi 下載

作者 http://ntu.csie.org/~piaip/index.html
下載 直接 Download pAppLocale.msi
大小 1.32 MB
MD5: 88CF204C81202EF457DC12F7B02D859C
SHA-1: B2128CD080E4994747550D8C3736D7444F73B788


一般而言,遇到非 Unicode 程式執行時,介面或語言會出現亂碼,安裝 Microsoft AppLocale 公用程式 即可
但是 Microsoft AppLocale 微軟官方的 Bug 也不少,例如 "AppLoc.tmp" ,所以需要安裝修正 AppLocale 後的 pAppLocale.msi,作者說明如下Microsoft AppLocale, 出名的切換語系工具, 不過它有很多問題,包括你裝了後 MSI Installer 都會用 上次設定的語系跑等等。
我修正了 AppLocale , 改為 pAppLocale, 除了修正 bug 外還讓你建捷徑後執行的程式不會再跑對話窗煩你。


Windows Vista / Windows 7 請用相容性執行


ZEGii's Sharea: 原創分享 - MicrosoftApplocale Rightkey
使用 AppLocale 時每次都要按
開始 > 程式集 > Microsoft AppLocale > AppLocale.exe
須時費久~ 因此小弟將之簡單整合於右鍵內, 既美觀又方便

只須執行以下 .reg 檔便可以
各內容如下:

日本語執行.regWindows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell\日本語執行]

[HKEY_CLASSES_ROOT\exefile\shell\日本語執行\command]
@="C:\\WINDOWS\\AppPatch\\AppLoc.exe \"%1\" \"/L0411\""

簡體中文執行.regWindows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell\簡體中文執行]

[HKEY_CLASSES_ROOT\exefile\shell\簡體中文執行\command]
@="C:\\WINDOWS\\AppPatch\\AppLoc.exe \"%1\" \"/L0804\""

= = = = = = = Extra = = = = = = =
繁體中文執行.regWindows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell\繁體中文執行]

[HKEY_CLASSES_ROOT\exefile\shell\繁體中文執行\command]
@="C:\\WINDOWS\\AppPatch\\AppLoc.exe \"%1\" \"/L0404\""

韓國語執行.regWindows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\exefile\shell\韓國語執行]

[HKEY_CLASSES_ROOT\exefile\shell\韓國語執行\command]
@="C:\\WINDOWS\\AppPatch\\AppLoc.exe \"%1\" \"/L0412\""


PS. 補充刪除regedit 繁體中文執行Microsoft AppLocale.reg 的方式[-HKEY_CLASSES_ROOT\exefile\shell\繁體中文執行]
[-HKEY_CLASSES_ROOT\exefile\shell\繁體中文執行\command]

2011年7月16日

[多媒體] Audacity 可以鑑識波形與音頻的免費專業軟體


Audacity 商標圖片來源 http://audacity.sourceforge.net/
官網 Audacity:自由的聲音編輯和錄音軟體
性質 自由軟體 免費 Open Source / 多國 / 繁體中文(Traditional Chinese) / Windows / Mac / Linux/Unix
說明 Download
直接下載官方 Audacity 1.2.6 for Windows 98 / ME / 2000 / XP
直接下載官方 Audacity 1.3.13 安裝版 for Windows 2000 / XP / Vista / 7
直接下載官方 Audacity 1.3.13 免安裝版 for Windows 2000 / XP / Vista / 7
audacity-win-unicode-1.3.13.exe MD5: 4C77BDAE773E363CDE5E817FFDB6BC4B
audacity-win-unicode-1.3.13.exe SHA-1: 518E5E635D9C5898B5BA9B19ECD385854A7183A0

有篇舊文檢驗正版CD、真假APE的好工具 Tau Analyzer 檢查APE 或其他音樂格式比較麻煩,需要轉檔
Audacity 檢視音頻、音質的方法比較簡單,又是 Open Source 的免費軟體啊 ( ̄▽ ̄)/ 

首先安裝 audacity-win-unicode-1.3.13 ,直接執行 Audacity ,介面功能很多
但不像 GoldWave 、 Cool Edit ( Adobe Audition ) 等付費軟體那麼複雜
這邊只說明如何檢視波形與音頻,並且判斷音質高低


如果開啟 Audacity 是簡體中文,可依照下圖改為繁體中文 Chinese ( Traditional )


開啟音訊檔,或是將 CD  APE  FLAC WAV MP3 檔案拖曳進來
如果想編輯的範圍超出視窗,可以在"檢視"控制視窗縮放大小,並依照使用方式調整
例如每次加入新檔案時,可以選"展開所有軌道"或選"適合垂直大小"等方式調整

這是檔案的波形

將波形切換成頻譜


Audacity 可以一次拖曳多個檔案方便檢視音頻頻率,調整方便檢視的視窗大小,下圖可以看出差異
  • Flac Source 飽滿,頻率高於 22k : 表示此 FLAC 檔接近 CD 音質,也就是常說的無損不失真
  • 320kbps 維持在22k 以下 : CD 轉成 MP3 檔之後的壓縮音質,聽力與設備不差的話是無法滿足的
  • 256kbps 維持在19.5k 以下,比較不飽滿
  • 192kbps 衰退至19.0k 以下,明顯不飽滿
  • 假320kbps 分析過後如同192kbps ,不足22k


更詳細可以選擇"分析">"繪畫頻譜",檢視 CD 等音訊來源


其他如錄製、剪接、分割截取音樂等專業功能官方都有說明
或是 Google 搜尋 Audacity 教學 就能找到很多教學文章
要分析 APE 格式記得要安裝 FFmpeg import/export library

這邊節錄一小段
Audacity 去除人聲的方法我該如何從錄音中移除人聲變成卡拉OK音軌呢?
1. 將您的立體聲檔案匯入Audacity。
2. 開啟「音軌」選單(點擊音軌標題後的箭頭),然後選擇「分割立體聲軌道」。
3. 選擇下面的音軌(右聲道)。選擇音軌時可以點擊「靜音/獨奏」按鈕附近的區域。
4. 在「效果」選單裡選擇「波形上下反轉」。
5. 使用「音軌」選單,將每個音軌都變為「單聲道」的。

Audacity 外掛 - 額外下載 Plug-ins and Libraries

其它聲音軟體
Ardour is a powerful digital audio workstation that runs on GNU/Linux and Mac OS X.
CDex 是Microsoft Windows系統上一款免費的的CD音軌轉錄工具。
GramoFile是一個擷取及清除vinyl records上錄音的免費工具。

補充說明 :
檢視音頻頻率時,只要將滑鼠移動到座標上,出現放大鏡圖示
再按下滑鼠右鍵左鍵,就可以放大縮小頻率範圍了。

2011年7月12日

安裝與查詢 DirectX 版本的指令 Dxdiag


安裝與查詢 DirectX 版本的指令 Dxdiag
1. 首先來下載 DirectX 最新版本吧 ( ̄▽ ̄)/

安裝 Windows Vista 的請看 DirectX 11 Download 微軟官方下載點收集 for Windows Vista / Server 2008 / 7
安裝 Windows XP 請看 DirectX Download 微軟官方下載點收集



2. 開始安裝下載好的 directx_Jun2010_redist.exe ,點兩下執行


3. License 同意,按下 Yes


4. 選擇要解壓縮的地方,名稱自訂,要記得放哪裡即可
輸入路經中,給它一個新資料夾,解壓縮出來才不會亂掉


5. 系統提醒是否要新建"New 新資料夾",按下"是"


6. 解壓縮完,進入剛剛的資料夾裡面
找到 DXSETUP.exe 安裝,通常在資料夾的最後面


7. 開始正式安裝 DirectX ,接受合約,下一步


8. 安裝 DirectX 稍等一下,完成安裝,建議重新開機


9. 安裝 DirectX 完畢,可以將剛剛解壓縮出來的檔案全部刪除


10. 開始檢查 DirectX 版本啦,執行 dxdiag


11. 出現 DirectX 診斷工具了,可以看到目前的 DirectX 版本為 DirectX 9.0c (4.09.0000.0904)


12. ATI Radeon HD 4250 顯示卡的 DirectX 相關資訊,驅動程式版本為 6.14.0010.7070




13. 但是此顯卡(內顯) ATI Radeon HD 4250 是有支援 DirectX11 的喔
下面兩張圖示,是 ATI Radeon HD 4250 在 Windows 7 SP1 的狀態,顯示 DirectX 版本為 11


14. ATI Radeon HD 4250 顯示卡的 DirectX 相關資訊,驅動程式版本為 8.821.0.0


2011年7月11日

[ cmd ] 禁用USB儲存裝置,也不會影響USB鍵盤、USB滑鼠的方法 XcAcls

之前有一篇 停用 Windows 2000 / XP 的 USB / Storage / Cdrom / Floppy 與 command line 寫法沒有辦法避免掉新增USB鍵盤、USB滑鼠的問題
再寫一篇就算是禁用USB儲存裝置,也不會影響USB鍵盤、USB滑鼠的方法 ψ(._. )> 筆記
參考文章如 http://www.pczone.com.tw/vbb3/thread/3/105874/#post775946

首先準備 XcAcls.exe 程式與擁有 Administrator 權限的帳號
官網 Windows 2000 Resource Kit Tool: Xcacls.exe
說明 Download 直接下載 xcacls_setup.exe
性質 en / Windows 2000 (Windows NT)
版本 5.2.3631.0 / 2002.05.15
XcAcls.exe 大小 44.0 KB
XcAcls.exe MD5: 78FD41A1E1D2CF1C7657CF80BDDE1164
XcAcls.exe SHA-1: ACB97223F909AB20DD0B0E655A8869E78B056D2B

不過有些注意事項:
1. 此方法只針對C槽為 NTFS 格式才有效,因為 XcAcls.exe,FAT 格式轉 NTFS 請用 convert 指令
2.會寫入regedit,所以執行時需要 Administrator 權限
3. XcAcls.exe 需放在與 cmd 下指令同一目錄
關閉 UsbstorDisableNoKB.batreg add "HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR" /v Start /t REG_DWORD /d 4 /f
XcAcls.exe %systemroot%\inf\usbstor.inf /d everyone /y
XcAcls.exe %systemroot%\inf\usbstor.pnf /d everyone /y

啟用 UsbstorEnableNoKB.batreg add "HKLM\SYSTEM\CurrentControlSet\Services\USBSTOR" /v Start /t REG_DWORD /d 3 /f
XcAcls.exe %systemroot%\inf\usbstor.inf /g everyone:r /y
XcAcls.exe %systemroot%\inf\usbstor.pnf /g everyone:r /y

4. 執行disable後請馬上重開機,才能生效
5. 測試過的作業系統有 Windows 2000 / Windows 2003 / Windows XP / Windows 7
6. Windows 7 也可以禁用 (觀察實驗中),但啟用方法請自行研究 NTFS 權限,不再贅述( ̄3 ̄)
7. 寫這篇反覆測試很久,欲轉貼務必請註明出處與作者,謝謝

其他 XcAcls.exe 語法 Displays or modifies access control lists (ACLs) of files

XCACLS filename [/T] [/E|/X] [/C] [/G user:perm;spec] [/R user [...]]
               [/P user:perm;spec [...]] [/D user [...]] [/Y]
   filename           Displays ACLs.
   /T                 Changes ACLs of specified files in
                      the current directory and all subdirectories.
   /E                 Edit ACL instead of replacing it.
   /X                 Same as /E except it only affects the ACEs that the
                      specified users already own.
   /C                 Continue on access denied errors.
   /G user:perm;spec  Grant specified user access rights.
                      Perm can be: R  Read
                                   C  Change (write)
                                   F  Full control
                                   P  Change Permissions (Special access)
                                   O  Take Ownership (Special access)
                                   X  EXecute (Special access)
                                   E  REad (Special access)
                                   W  Write (Special access)
                                   D  Delete (Special access)
                      Spec can be the same as perm and will only be
                           applied to a directory. In this case, Perm
                           will be used for file inheritence in this
                           directory. If not omitted: Spec=Perm. Special values
                           for Spec only:
                                   T  Not Specified (for file inherit,
                                      only for dirs valid)
                                      At least one access right has to follow!
                                      Entries between ';' and T will be ignored!
   /R user            Revoke specified user's access rights.
   /P user:perm;spec  Replace specified user's access rights.
                      for access right specification see /G option
   /D user            Deny specified user access.
   /Y                 Replace user's rights without verify

Wildcards can be used to specify more that one file in a command.
You can specify more than one user in a command.
You can combine access rights.

Xcacls Examples
Example 1

The following command replaces the ACL of all files and directories in the current directory without scanning subdirectories and without confirmation.

XCACLS *.* /G administrator:RW /Y
Example 2

The following command edits the ACL of a file or a directory, but its effect on a directory is different. The ACE added to the directory is also an inherit ACE for new files created in this directory.

In this example, the command gives TestUser read, write, run, and delete rights on all new files created in this directory, but only read and write permissions on the directory itself.

XCACLS *.* /G TestUser:RWED;RW /E
Example 3

The following command grants read and write permissions on a directory without creating an inherit entry for new files. Therefore, in this example, new files created in this directory get no ACE for TestUser. For existing files, an ACE with read permissions is created.

XCACLS *.* /G TestUser:R;TRW /E

2011年7月10日

[ cmd ] 如何使用 convert 指令將 Windows 的硬碟或分割區從 FAT 格式轉換成 NTFS


注意事項與資料來源:
將硬碟或磁碟分割轉換為 NTFS 格式
http://windows.microsoft.com/zh-TW/windows-vista/Convert-a-hard-disk-or-partition-to-NTFS-format
附註
    將磁碟分割轉換為 NTFS 之後,無法再轉換回來。如果要在磁碟分割上再使用 FAT 檔案系統,您需要重新格式化磁碟分割,而這會清除上面的所有資料。
    有些舊版的 Windows 無法讀取本機 NTFS 磁碟分割上的資料。如果您需要使用舊版 Windows 存取電腦上的磁碟分割,請勿轉換。
    雖然轉換期間發生損毀或資料遺失的機會極低,但您還是應該在開始之前先備份磁碟分割上的所有資料。

將 C 槽轉換為 NTFS 格式的方法
記得先將開啟中的所有的工作與資料儲存並關閉,指令下完需手動重開機,等系統跑完轉換
如果出現"強制卸下磁碟區"的問題建議選N,不然可能轉換完還要自己去磁碟管理手動掛載
尤其是C槽,windows 抓不到就麻煩了
C:\>convert c:/fs:ntfs
檔案系統的類型是 FAT32。
無法進行轉換,因為磁碟區已經被其他處理佔用了。
必須先將磁碟區卸下才能執行轉換。
這個磁碟區上所有已經開啟的控制碼將無效。
您要強制卸下磁碟區嗎? (Y/N) n
轉換不能獨占 C: 磁碟的存取,
所以不能在現在轉換。您是否要為轉換排程,讓它在系統下次重新啟動時進行轉換 (Y/N)? y
下一次重新啟動系統時,轉換會自動執行。

將 D 槽轉換為 NTFS 格式
一樣記得將開啟中的所有的工作與資料儲存並關閉
D:\>convert d:/fs:ntfs
檔案系統的類型是 FAT32。
無法進行轉換,因為磁碟區已經被其他處理佔用了。
必須先將磁碟區卸下才能執行轉換。
這個磁碟區上所有已經開啟的控制碼將無效。
您要強制卸下磁碟區嗎? (Y/N) y
磁碟區已解下。在這個磁碟區上所有開啟中的控制都已失效。
磁碟區序列號碼為 D8CE-28C2
Windows 正在確認檔案及資料夾...
檔案及資料夾確認已完成。
Windows 已經檢查了檔案系統,而且沒有發現問題。

磁碟空間總計 2,126,143,488 位元組。
可用磁碟空間 2,126,139,392 位元組。

每個配置單元各有 4,096 個位元組。
磁碟上共有 519,078 個配置單元。
磁碟上有 519,077 可用的配置單元。

決定檔案系統轉換所需的磁碟空間...
磁碟空間總計為: 2080386 KB
磁碟區上的可用空間為: 2076308 KB
轉換所需的空間為: 14799 KB
轉換檔案系統
轉換完成。

2011年7月5日

[ cmd ] NBTscan 小程式下載與用法

官網 www.inetcat.net/software/nbtscan
說明 Download 直接下載
性質 freeware 免費 Open Source / en / Windows(Win95 to Win7)
版本 1.5.1 / 2003.06
大小 478 KB
MD5: B70E6FD0FF34744DB27649FC4F8237DA
SHA-1:3A44AC49180A1BFC61BB7A4A8046E564688B8C6B



Examples:
        nbtscan -r 192.168.1.0/24
                Scans the whole C-class network.
        nbtscan 192.168.1.25-137
                Scans a range from 192.168.1.25 to 192.168.1.137
        nbtscan -v -s : 192.168.1.0/24
                Scans C-class network. Prints results in script-friendly
                format using colon as field separator.
                Produces output like that:
                192.168.0.1:NT_SERVER:00U
                192.168.0.1:MY_DOMAIN:00G
                192.168.0.1:ADMINISTRATOR:03U
                192.168.0.2:OTHER_BOX:00U
                ...
        nbtscan -f iplist
                Scans IP addresses specified in file iplist.


相關文章
windows 常用網路指令 nbtstat 找 MAC
Windows 常用網路指令 arp 指令用法

2011年7月4日

[ cmd ] Windows 常用網路指令 arp 指令用法

接續 windows 常用網路指令 nbtstat 找 MAC 此篇,紀錄一下 arp 指令用法ψ(._. )>

C:\>arp -?

顯示和修改位址解析通訊協定 (ARP) 使用的 IP 對
實際位址轉譯表格。

ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr] [-v]

  -a            質詢目前的通訊協定資料來顯示目前的
                ARP 項目。如果指定 inet_addr,只會顯示指定電腦的
                IP 及實體位址。如果有多個網路介面使用 ARP,便會顯示每個 ARP表格的項目。
  -g            與 -a 相同。
  -v            以詳細資訊模式顯示目前的 ARP 項目。
                 將會顯示所有無效項目和回路介面上的項目。
  inet_addr     指定網際網路位址。
  -N if_addr    顯示 if_addr 指定之網路介面的 ARP項目。
  -d            刪除 inet_addr 指定的主機。使用萬用字元 * 取代 inet_addr 可刪除所有主機。
  -s            新增主機並將網際網路位址 inet_addr 與實體位址 eth_addr 相關聯。
                 實體位址是 6 個以連字號分隔的十六進位位元組。
                 該項目永久不變。
  eth_addr      指定實體位址。
  if_addr       如果存在,這會指定介面的網際網路位址,應修改此介面的位址轉譯表格。
                如果不存在,將會使用第一個適用的介面。
範例:
  > arp -s 157.55.85.212   00-aa-00-62-c6-09  .... 新增靜態項目。
  > arp -a                                    .... 顯示 ARP 表格。


英文說明C:\>arp -?
Displays and modifies the IP-to-Physical address translation tables used by
address resolution protocol (ARP).

ARP -s inet_addr eth_addr [if_addr]
ARP -d inet_addr [if_addr]
ARP -a [inet_addr] [-N if_addr]

  -a            Displays current ARP entries by interrogating the current
                protocol data.  If inet_addr is specified, the IP and Physical
                addresses for only the specified computer are displayed.  If
                more than one network interface uses ARP, entries for each ARP
                table are displayed.
  -g            Same as -a.
  inet_addr     Specifies an internet address.
  -N if_addr    Displays the ARP entries for the network interface specified
                by if_addr.
  -d            Deletes the host specified by inet_addr. inet_addr may be
                wildcarded with * to delete all hosts.
  -s            Adds the host and associates the Internet address inet_addr
                with the Physical address eth_addr.  The Physical address is
                given as 6 hexadecimal bytes separated by hyphens. The entry
                is permanent.
  eth_addr      Specifies a physical address.
  if_addr       If present, this specifies the Internet address of the
                interface whose address translation table should be modified.
                If not present, the first applicable interface will be used.
Example:
  > arp -s 157.55.85.212   00-aa-00-62-c6-09  .... Adds a static entry.
  > arp -a                                    .... Displays the arp table.