發表文章

目前顯示的是有「Windows」標籤的文章

windows7 command line set display mode

DisplaySwitch.exe /clone  -> will duplicate displays. DisplaySwitch.exe /extend -> will extend displays. Also you can use Win+P if you want a quick shortcut.

Excel 工作表密碼保護的解除方法

當開啟一個 Excel工作表,進入後要看工作表上的公式如何運作,才發現工作表受到密碼保護,上網搜尋了一下破解方法,試過很多種方法都太麻煩,最後終於找到最簡單的破解方法,借此分享,希望用的到的人不必再一一去試。 Excel 工作表密碼保護的解除方法 利用 VBA 巨集程式破解法: 1:打開該文件,切換到“檢視”選項,點擊“巨集”→“錄製巨集”,出現“錄製巨集”窗口,在“巨集名稱”隨意輸入一名稱(假設:ABC),點擊“確定”退出; 2:再點擊“巨集”→“檢視巨集”,選擇“巨集名稱”下的“ABC”並點擊右邊的“編輯”,會自動打開“Microsoft Visual Basic”編輯器,用以下的內容完全替換右側窗口中的所有編碼: Sub  ABC( )    Dim i As Integer, j As Integer, k As Integer    Dim l As Integer, m As Integer, n As Integer    Dim i1 As Integer, i2 As Integer, i3 As Integer    Dim i4 As Integer, i5 As Integer, i6 As Integer    On Error Resume Next    For i = 65 To 66: For j = 65 To 66: For k = 65 To 66       For l = 65 To 66: For m = 65 To 66: For i1 = 65 To 66          For i2 = 65 To 66: For i3 = 65 To 66: For i4 = 65 To 66             For i5 = 65 To 66: For i6 = 65 To 66: For n = 32 To 126             ...

Windows Installer Errors 2738 and 2739

2738, Could not access VBScript run time for custom action. 2739, Could not access JScript run time for custom action. VBScript 1. regedit,刪除機碼 "HKCU\SOFTWARE\Classes\Wow6432Node\CLSID\{B54F3741-5B07-11CF-A4B0-00AA004A55E8}" 2. 用Administrator的身份啟動命令提示字元,然後執行以下指令: 64-bit version of Windows: cd c:\windows\syswow64 regsvr32 vbscript.dll 32-bit version of Windows: cd c:\windows\system32 regsvr32 vbscript.dll JScript 1. regedit,刪除機碼 "HKCU\SOFTWARE\Classes\Wow6432Node\CLSID\{F414C260-6AC0-11CF-B6D1-00AA00BBBB58}" 2. 用Administrator的身份啟動命令提示字元,然後執行以下指令: 64-bit version of Windows: cd c:\windows\syswow64 regsvr32 jscript.dll 32-bit version of Windows: cd c:\windows\system32 regsvr32 jscript.dll referencd: https://tw.answers.yahoo.com/question/index?qid=20100713110248AAGkno2   https://blogs.msdn.microsoft.com/heaths/2007/05/31/windows-installer-errors-2738-and-2739-with-script-custom-actions/   http://boyilee.blogspot.tw...

關閉 Windows 7 Update 線上 尋找驅動

圖片

windows7 samba 與 linux 出現 mount error(12): Cannot allocate memory

修改 HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters\size 改成 3     1 = 使用的記憶體最小化     2 = 餘額     3 = 輸送量最大化的檔案共用及輸送量最大化的網路應用程式         可用 regedit 修改 或 下面         reg add HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters /v Size /t REG_DWORD /d 3 /f     重新開機 or                 sc stop  LanmanServer                 sc start LanmanServer              or                 net start lanmanserve http://support.microsoft.com/kb/232271/zh-tw

win and linux 透過 samba 共用檔案

1. vim /etc/samba/smb.conf 如下:     [global]     unix charset = utf8     display charset = utf8     dos charset = cp950     security = user     [sharefiles]     comment = Share Files     path = /home/username     browseable = yes     read only = no     create mask = 0644     directory mask = 0755     public = yes 2. 設定samba帳號密碼:     smbpasswd -a <帳號> 3. restart:     /etc/init.d/samba restart 這樣應該就能用了, 在xp下test: \\ip-ip-ip-ip-ip-ip

顯示所有在 Chrome 儲存的密碼

chrome://chrome/settings/passwords 就可以把儲存的網址、帳號都列出來,而且點選 "show",密碼還可以完整無缺的看到。

notepad++ Plugin FunctionList unicode 版本

下載連結: http://blog.powercam.cc/sys/lib/read_attach.php?id=2383

Notepad++ 開啟多個視窗

Run => Open in another instance

Linux 遠端桌面XDMCP,使用 windows 遠端登入

圖片
遠端桌面這一個功能不稀奇,所有使用過Windows 作業系統的使用者都用過這一個功能, 大至上只要你是用Windows 專業版或是Server 都可以很簡單的?用這一個功能, 現在就是要將這一個功能換到Linux 系統上,辦法是一樣但是就是步驟多了一點, 而Liunx 系統上使用圖形化的遠端桌面就是XDMCP。 一般來說遠端連線到Linux 作業系統所看到會是Termal Command 的畫面, 所有的操作都是要用指令的方式去執行,這樣的好處是系統所消耗的資源是最少的, 並且可以減少使用者有不確定的操作發生,不過這樣的介面最大的問題就是使用者會視為畏途。 如果你問一個使用者這兩個操作介面選擇,大多數的人都是會選擇下面這一個比較接受的XDMCP 圖形化介面。 現在來說明建立Linux XDMCP 遠端桌面的步驟。 #安裝 XDMCP Server yum install gdm gnome-panel gnome-session xorg-x11-xdm 1. 使用 xdm 管理 X terminals vi /etc/X11/xdm/xdm-config #在最前面加上一個驚嘆號 ( ! ) !DisplayManager.requestPort: 0 2. 允許登入 X window vi /etc/X11/xdm/Xaccess #刪除最前面的註解符號 *        #any host can get a login window 3. 讓 GDM 接受 XDMCP 連線 vi /etc/gdm/custom.conf [security] DisallowTCP=false [xdmcp] Enable=true 4. 記得把 UDP 177port 打開,當然最保險的是把 firewall關掉。 5. reboot or init 5(重新登入) 第1項, 似乎不用改也可以@@?? #Windows 有 Xming 和  Xmanager   可以使用,Xming 是免費的 使用Xmanager 4 下載 X...

Eclipse + CDT(C/C++開發工具計劃) 解決 unicode 問題

由於 source insight 3 不支援 Unicode, 看 source code 變得很麻煩,  想不懂, 這麼大的公司, 怎麼會這麼久都還沒出新版. 搜尋很久, 終於發現 Eclipse 這套 IDE, 應該還滿符合需求, 跨平台, 重點不用$$. 可是 wiki 瞭解相關資訊: http://zh.wikipedia.org/wiki/Eclipse http://www.eclipse.org/downloads/ 官網就可以下載 windows 的執行檔, 免安裝, 給個讚. 因為我只用 C, 所以用 Eclipse IDE for C/C++ Developers 應該就可以,  當然 用這個也可以 Eclipse Classic 3.7.2 再安裝 CDT 一樣可以. 重點, 可以安裝中文版, 當然翻譯沒有很完整, 但還是不錯用. Babel Language Packs 中文套件 http://www.eclipse.org/babel/downloads.php 選擇 "Install New Software" 填入網址.  看你的 eclipse 版本, 例如 Indigo 就填 http://download.eclipse.org/technology/babel/update-site/R0.9.1/indigo 選擇中文版本就可以了 當然 CDT 也用相同方法就可以安裝了.

Windows7 中讓msn可以縮小到右下角Tray bar

相信很多人應該很不習慣Windows 7 中使用msn時 按下叉叉想要縮到右下方的Tray bar時 卻發生了他只縮在開始工具列佔位子 解決方法就是:將msnmsge.exe相容性改成Vista Sp3就可以了 不了解的再看以下步驟吧! Step 1: 到msn安裝目錄下找到msnmsgr.exe         (沒更改的話應該是C:\Program Files\Windows Live\Messenger) Step 2: 找到msnmsgr.exe後,在它上面按右鍵,點選內容 Step 3: 上方分頁標籤點"相容性" Step 4: 將"以相容模式執行這個程式" 打勾 Step 5: 下方的下拉式選單選"Windows Vista (Service Pack 2) 完成!

SSHFS for Windows

圖片
前陣子, windows 的網芳不能用@@@@, 修不好... 這讓我很苦惱, 畢竟 windows 下的軟體還是比較好用. 無意間發現了 sshfs 這功能..., 可說瞬間解決的我的問題, 只能說 " 讚 " 提到Windows與inux(Unix)文件共享,我能想到的就是以下這些了: 1. samba:但一定要同一個網域. 2. NFS  :沒有免錢的 windows 軟體. 3. sshfs :在 linux 下可以用 fuse 來 mount, 與 NFS 類似.           現在 windows(Dokan) 也有人做出來了, 重點:免費!!!聽說是日本人做的. Dokan 下載地址: http://dokan-dev.net/en/download/ 需下載兩個軟體 1. Dokan library    http://dokan-dev.net/wp-content/uploads/DokanInstall_0.6.0.exe 2. 有兩套    1. Dokan SSHFS    http://dokan-dev.net/wp-content/uploads/dokan-sshfs-0201226.zip    http://dokan-dev.net/wp-content/uploads/dokan-sshfs-0.6.0.zip    先安裝 dokan-sshfs-0201226.zip, 再將 dokan-sshfs-0.6.0.zip 覆蓋過去    2. win-sshfs    https://win-sshfs.googlecode.com/files/win-sshfs-0.0.1.5-setup.exe 連線方法 也可以用 ssh key, 但不會設, 所以先用 password, 有機會再研究. ****************************************************************************** Linux + Windows 的設定流程: 1...

How To Remove Windows Startup Programs & Speed Up Startup

將 windows 開機時常駐的程式取消。 1. 程式集裡的 " 啟動 " ( startup ) 以下利用 regedit .... (修改前最好先用匯出,將所以設定備份下來) 2. HKEY_LOCAL_MACHINE\Sofeware\Microsoft\Windows\CurrentVeriosn\Run     HKEY_CURRENT_USER\Sofeware\Microsoft\Windows\CurrentVeriosn\Run     將不用的刪掉 reference:  http://www.youtube.com/watch?v=MV5NeTyDvvY

Thumbs.db

圖片
Thumbs.db 是隱藏檔及系統檔屬性的。 Thumbs.db 其實是檔案總管所自動建立的縮圖快取檔案,只要你使用檔案總管的縮圖檢視模式並瀏覽至有多媒體檔案(列如圖像、影片…之類的檔案)存在的資料夾 Windows 便會自行建立該檔,以加速你下次再瀏覽此資料夾時縮圖顯示的速度,而如果你電腦中多媒體檔案不少的話這個 Thumbs.db 檔案佔用的空間相對的也就相當驚人。 要讓 Winodws 別建立 Thumbs.db 最有效的方法就是停止建立縮圖快取,可以透過「 控制台\資料夾選項\檢視 」設定中勾選「 不要快取縮圖 」來讓 Windows 停止建立縮圖快取。 利用 bat 檔,一次刪掉所有的  Thumbs.db,如下 for %%d in (C D E F G H I J K L M N O P Q R S T U V W X Y Z) do del /s /q /f %%d:\Thumbs.db

20101015 WGA 移除。

將下列文字,存成批次檔。執行就可以了! c: cd \windows\system32 ren WgaLogon.exe WgaLogon.old ren WgaLogon.dll WgaLogon.bak ren WgaTray.exe WgaTray.old regsvr32 /u /s LegitCheckControl.dll del wgalogon*.* del wgatray*.* del LegitCheckControl.dll pause