<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>windows &#8211; richliu&#039;s blog</title>
	<atom:link href="https://blog.richliu.com/tag/windows/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.richliu.com</link>
	<description>Linux, 工作, 生活, 家人</description>
	<lastBuildDate>Sat, 06 Jan 2024 17:06:00 +0000</lastBuildDate>
	<language>zh-TW</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.6.2</generator>
	<item>
		<title>Windows 11 移除 USB 出現此裝置正在使用中的問題</title>
		<link>https://blog.richliu.com/2024/01/07/5427/windows-11-%e7%a7%bb%e9%99%a4-usb-%e5%87%ba%e7%8f%be%e6%ad%a4%e8%a3%9d%e7%bd%ae%e6%ad%a3%e5%9c%a8%e4%bd%bf%e7%94%a8%e4%b8%ad%e7%9a%84%e5%95%8f%e9%a1%8c/</link>
					<comments>https://blog.richliu.com/2024/01/07/5427/windows-11-%e7%a7%bb%e9%99%a4-usb-%e5%87%ba%e7%8f%be%e6%ad%a4%e8%a3%9d%e7%bd%ae%e6%ad%a3%e5%9c%a8%e4%bd%bf%e7%94%a8%e4%b8%ad%e7%9a%84%e5%95%8f%e9%a1%8c/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Sat, 06 Jan 2024 16:55:20 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[usb]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">https://blog.richliu.com/?p=5427</guid>

					<description><![CDATA[<p>這個每次都會出現，有點煩，筆記一下以後可能還會用到 如果出現，退出 USB 時發生問題此裝置目前正在使用中。請 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2024/01/07/5427/windows-11-%e7%a7%bb%e9%99%a4-usb-%e5%87%ba%e7%8f%be%e6%ad%a4%e8%a3%9d%e7%bd%ae%e6%ad%a3%e5%9c%a8%e4%bd%bf%e7%94%a8%e4%b8%ad%e7%9a%84%e5%95%8f%e9%a1%8c/">Windows 11 移除 USB 出現此裝置正在使用中的問題</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>這個每次都會出現，有點煩，筆記一下以後可能還會用到<br /><br />如果出現，退出 USB 時發生問題<br />此裝置目前正在使用中。請關閉任何可能正在使用該裝置的程式或視窗，然後再試一次<br />的解決方案</p>



<span id="more-5427"></span>



<p>1. 確定你的 USB 磁碟機，例如 E: <br />2. 叫出工作管理員，在效能 -> CPU 的右上角的三個點（更多），選資源監視器</p>



<figure class="wp-block-image size-full"><img fetchpriority="high" decoding="async" width="1575" height="910" src="https://blog.richliu.com/wp-content/uploads/2024/01/image.png" alt="" class="wp-image-5428" srcset="https://blog.richliu.com/wp-content/uploads/2024/01/image.png 1575w, https://blog.richliu.com/wp-content/uploads/2024/01/image-600x347.png 600w, https://blog.richliu.com/wp-content/uploads/2024/01/image-768x444.png 768w, https://blog.richliu.com/wp-content/uploads/2024/01/image-1536x887.png 1536w" sizes="(max-width: 1575px) 100vw, 1575px" /></figure>



<p>2. 叫出資源監視器之後，在 CPU -> 關聯控制代碼，打上磁碟機代號:\ ，例如 E:\<br />3. 在出現的影像(應該叫應用程式)上，按右鍵選結束處理程序</p>



<figure class="wp-block-image size-full"><img decoding="async" width="1914" height="880" src="https://blog.richliu.com/wp-content/uploads/2024/01/image-1.png" alt="" class="wp-image-5429" srcset="https://blog.richliu.com/wp-content/uploads/2024/01/image-1.png 1914w, https://blog.richliu.com/wp-content/uploads/2024/01/image-1-600x276.png 600w, https://blog.richliu.com/wp-content/uploads/2024/01/image-1-768x353.png 768w, https://blog.richliu.com/wp-content/uploads/2024/01/image-1-1536x706.png 1536w" sizes="(max-width: 1914px) 100vw, 1914px" /></figure>



<p>4. 結束完應用程式之後再移除 USB 裝置，應該就可以了</p>



<p>ref.<br /><a href="https://answers.microsoft.com/zh-hant/windows/forum/all/%E8%A1%8C%E5%8B%95%E7%A1%AC%E7%A2%9Fusb%E7%84%A1/8989fb07-58b4-4601-ae78-320bc81b1d33" target="_blank" rel="noopener">行動硬碟&amp;USB無法退出</a></p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2024/01/07/5427/windows-11-%e7%a7%bb%e9%99%a4-usb-%e5%87%ba%e7%8f%be%e6%ad%a4%e8%a3%9d%e7%bd%ae%e6%ad%a3%e5%9c%a8%e4%bd%bf%e7%94%a8%e4%b8%ad%e7%9a%84%e5%95%8f%e9%a1%8c/">Windows 11 移除 USB 出現此裝置正在使用中的問題</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2024/01/07/5427/windows-11-%e7%a7%bb%e9%99%a4-usb-%e5%87%ba%e7%8f%be%e6%ad%a4%e8%a3%9d%e7%bd%ae%e6%ad%a3%e5%9c%a8%e4%bd%bf%e7%94%a8%e4%b8%ad%e7%9a%84%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Google 雲端硬碟搬家</title>
		<link>https://blog.richliu.com/2021/03/05/4396/google-driver-move-to-other-folder/</link>
					<comments>https://blog.richliu.com/2021/03/05/4396/google-driver-move-to-other-folder/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Fri, 05 Mar 2021 03:11:20 +0000</pubDate>
				<category><![CDATA[Computer/Technical]]></category>
		<category><![CDATA[GoogleDriver]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">https://blog.richliu.com/?p=4396</guid>

					<description><![CDATA[<p>Windows 主硬碟快爆了，所以要將原來放在 C 的雲端硬碟 Cache 搬到 D 槽 程序也不難1 ) 打 [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2021/03/05/4396/google-driver-move-to-other-folder/">Google 雲端硬碟搬家</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>Windows 主硬碟快爆了，所以要將原來放在 C 的雲端硬碟 Cache 搬到 D 槽</p>



<span id="more-4396"></span>



<p>程序也不難<br />1 ) 打開 regedit (登錄編輯程式)<br />2) 找到<br /> HKEY_CURRENT_USER\Software\Google\DriveFS <br />（如果是整機的請改  HKEY_LOCAL_MACHINE\Software\Google\DriveFS )<br />3) 加上一個 String Key 值<br /> ContentCachePath 指到需要的目錄，我就是指到 D:\GoogleDriverFS <br />4) 重開 Google Driver 就可以了 <br />    註：這時候 Cache 會搬家，請勿重開電腦或是程式，另外如果有還沒有上傳完畢的檔案也請先行處理，等上傳完畢後再搬家<br /></p>



<figure class="wp-block-image"><img decoding="async" width="1346" height="858" src="https://blog.richliu.com/wp-content/uploads/2021/03/image-1.png" alt="" class="wp-image-4397" srcset="https://blog.richliu.com/wp-content/uploads/2021/03/image-1.png 1346w, https://blog.richliu.com/wp-content/uploads/2021/03/image-1-600x382.png 600w, https://blog.richliu.com/wp-content/uploads/2021/03/image-1-768x490.png 768w" sizes="(max-width: 1346px) 100vw, 1346px" /></figure>



<p>ref<br /><a href="https://support.google.com/a/answer/7644837?hl=en" target="_blank" rel="noreferrer noopener" aria-label="Configure Google Drive for desktop (opens in a new tab)">Configure Google Drive for desktop</a></p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2021/03/05/4396/google-driver-move-to-other-folder/">Google 雲端硬碟搬家</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2021/03/05/4396/google-driver-move-to-other-folder/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>WSL (Windows Subsystem for Linux) 和 Windows App 的檔案權限問題</title>
		<link>https://blog.richliu.com/2019/01/09/3314/wsl-windows-subsystem-for-linux-%e5%92%8c-windows-app-%e7%9a%84%e6%aa%94%e6%a1%88%e6%ac%8a%e9%99%90%e5%95%8f%e9%a1%8c/</link>
					<comments>https://blog.richliu.com/2019/01/09/3314/wsl-windows-subsystem-for-linux-%e5%92%8c-windows-app-%e7%9a%84%e6%aa%94%e6%a1%88%e6%ac%8a%e9%99%90%e5%95%8f%e9%a1%8c/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Wed, 09 Jan 2019 03:42:33 +0000</pubDate>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[WSL]]></category>
		<guid isPermaLink="false">https://blog.richliu.com/?p=3314</guid>

					<description><![CDATA[<p>WSL 在一些輕量級的 Linux application 下很好用，不過如果專案稍大一點，vim 就不夠力  [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2019/01/09/3314/wsl-windows-subsystem-for-linux-%e5%92%8c-windows-app-%e7%9a%84%e6%aa%94%e6%a1%88%e6%ac%8a%e9%99%90%e5%95%8f%e9%a1%8c/">WSL (Windows Subsystem for Linux) 和 Windows App 的檔案權限問題</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>WSL 在一些輕量級的 Linux application 下很好用，不過如果專案稍大一點，vim 就不夠力</p>
<p>這時候如果用 Windows application 同時開發，如果寫入到 home 目錄的權限，檔案的 mode 會是 000<br />
要手動改 755 才可以編輯</p>
<p>WSL 執行時仍然是用執行使用者的權限，雖然也可以跑在 admin mode 但是不建議</p>
<p>所以要讓 WSL Linux 和 Windows 同時開發，要將程式放在 /mnt/&lt;driver&gt; 下<br />
讓 Windows 管理整個權限，就不會有寫到 home 目錄之後，檔案的 mode 變 000 的狀況</p>
<p>ref<br />
<a href="https://github.com/Microsoft/vscode/issues/50996" target="_blank" rel="noopener">VSCODE cannot save file launched by WSL 18.04 </a></p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2019/01/09/3314/wsl-windows-subsystem-for-linux-%e5%92%8c-windows-app-%e7%9a%84%e6%aa%94%e6%a1%88%e6%ac%8a%e9%99%90%e5%95%8f%e9%a1%8c/">WSL (Windows Subsystem for Linux) 和 Windows App 的檔案權限問題</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2019/01/09/3314/wsl-windows-subsystem-for-linux-%e5%92%8c-windows-app-%e7%9a%84%e6%aa%94%e6%a1%88%e6%ac%8a%e9%99%90%e5%95%8f%e9%a1%8c/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>自幹 dyndns</title>
		<link>https://blog.richliu.com/2014/10/09/1674/%e8%87%aa%e5%b9%b9-dyndns/</link>
					<comments>https://blog.richliu.com/2014/10/09/1674/%e8%87%aa%e5%b9%b9-dyndns/#respond</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Wed, 08 Oct 2014 17:01:20 +0000</pubDate>
				<category><![CDATA[Gentoo]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[Bind]]></category>
		<category><![CDATA[dyndns]]></category>
		<category><![CDATA[named]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[schtasks]]></category>
		<category><![CDATA[Update]]></category>
		<category><![CDATA[windows]]></category>
		<guid isPermaLink="false">http://blog.richliu.com/?p=1674</guid>

					<description><![CDATA[<p>之前好像免費的 dyndns 都收的差不多了, 好像很久沒有人提了. 今天心情還不錯, 就來架設自己的 dyn [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2014/10/09/1674/%e8%87%aa%e5%b9%b9-dyndns/">自幹 dyndns</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>之前好像免費的 dyndns 都收的差不多了, 好像很久沒有人提了.<br />
今天心情還不錯, 就來架設自己的 dyndns.<br />
主要可以參考這二篇</p>
<p><a href="http://phorum.study-area.org/index.php?topic=40717.0" target="_blank" rel="noopener">[分享] 用 BIND 架設 DDNS Server 提供 DDNS 服務 </a>及<br />
<a href="http://www.study-area.org/tips/ddns.htm" target="_blank" rel="noopener">動態 DNS 設定技巧</a><br />
<span id="more-1674"></span></p>
<p>上網看了一下, 大家寫的非常長, 不過如果架過 DNS, 其實也沒有這麼難, 實作上還算簡單的.<br />
至少比想像中簡單許多<br />
1. 在 /var/bind/pri/named.domain.com 中加入你想要做 dyndns 的 domain name</p>
<p style="padding-left: 30px;">ex:<br />
test A 0.0.0.0</p>
<p style="padding-left: 30px;">別忘了改 serial number</p>
<p>2. 到 /var/bind/dyn 下產生 key</p>
<p style="padding-left: 30px;"># dnssec-keygen -a HMAC-MD5 -b 512 -n USER test.domain.name.<br />
會產生二個檔案, 內容產不多</p>
<p>3. 將 key 內容 copy 到 bind 去</p>
<p style="padding-left: 30px;">將其中的 Ktest.domain.name.+123+45678.key 內的</p>
<p style="padding-left: 30px;">&#8220;test.domain.name. IN KEY 0 3 157 WH3pLphbwFlc/F8C1tbFcdzWRfcDdYWu00KBM5l2OE0rAVHzXFO+dahU SRrPKC0AMcbO6mwV4oVK94G9J5u9aw==<br />
放到 /etc/bind/named.conf 內,</p>
<p style="padding-left: 30px;">key test.domain.name. {<br />
algorithm HMAC-MD5;<br />
secret &#8220;WH3pLphbwFlc/F8C1tbFcdzWRfcDdYWu00KBM5l2OE0rAVHzXFO+dahU SRrPKC0AMcbO6mwV4oVK94G9J5u9aw==&#8221;;<br />
};</p>
<p>4. 修改 zone 的設定</p>
<p style="padding-left: 30px;">zone &#8220;domain.name&#8221; in {<br />
type master;<br />
file &#8220;pri/named.domain&#8221;;<br />
allow-query{ any; };</p>
<p style="padding-left: 30px;">update-policy {<br />
grant test.domain.name. name test.domain.name. A;<br />
};<br />
};</p>
<p>5. Restart bind</p>
<p style="padding-left: 30px;"># /etc/init.d/named restart</p>
<p>6. 測試 Update 是否成功<br />
使用 nsupdate 工具向 Primary DNS 做更新動作：</p>
<p>$ nsupdate -k Ktest.domain.name.+123+45678.key<br />
&gt; server ns.domain.name // 指定 Primary DNS<br />
&gt; update delete test.domain.name A // 先刪除舊資料<br />
&gt; update add test.domain.name 0 A 1.1.1.1 // 再新增資料<br />
&gt; send // 送出到 Primary DNS<br />
$ dig @ns.domain.name test.domain.name<br />
;; ANSWER SECTION:<br />
test.domain.name. 0 IN A 1.1.1.1</p>
<p>如果不成功, 可以看一下 /var/log , 然後看看是不是少了 /var/bind/pri/named.domain.com.jnl, 這個權限要加上去<br />
如果重啟之後, 出現 &#8220;response to SOA query was unsuccessful&#8221;, 那個 .jnl 的檔案砍了再重來就可以了, 好像是改了 SOA 就會錯亂.</p>
<p>這樣算完成一半, 上面第二個 Link 內有 Linux Update 的範例, 不過 Windows 怎麼辦呢? 像中華電信每幾天會換一次 IP, 所以自動更新的功能只好自己硬幹了. 而且 Windows PPPoE Disconnect/connected 時都不會有 event 可以呼叫 script 去執行, 所以就每一陣子執行一次 script 更新一下 DNS 資料, 不重要的 Service 這樣做還好, 重要的話可能就不行, 但是重要的也不會放 PPPoE 上吧 XD</p>
<p>自己硬幹有幾個選擇</p>
<p style="padding-left: 30px;">[X] DOS BASH : 這個很差, 可能抓不到 IP<br />
[X] Cygwin : 這個在我的 Windows XP 上根本跑不起來, 被防毒軟體擋到不能用 :&lt;<br />
[O] Python : 這個好, 什麼地方都可以用, 只要跑簡單的程式的話, 還是 python 安定.</p>
<p>所以就自己寫了一個小程式<br />
1. 程式碼放到 github , 存成 update.py<br />
https://github.com/richliu/dnsupdate</p>
<p>2. 產生 template file, script.txt 內容如下</p>
<p style="padding-left: 30px;">server ns.domain.name<br />
update delete test.domain.name A<br />
update add test.domain.name 0 A SERVER_NEW_IP<br />
send</p>
<p>3. 產生一個空的 ip.dat 檔案. (懶得檢查了, 所以就自己動手最快)</p>
<p>4. 寫一個 run.bat 內容是</p>
<p style="padding-left: 30px;">cd C:\TEST\<br />
C:\Python27\python.exe update.py</p>
<p>5. 下載 bind 執行檔 for windows 32bit</p>
<p><a href="http://www.isc.org/downloads/bind/" target="_blank" rel="noopener">  http://www.isc.org/downloads/bind/</a></p>
<p>解出所有的 .dll 檔, 和 dig 及 nsupdate 丟到同一個目錄, 如果是 windows 32 bit, 別忘了執行一下程式內的 vcredist_x86.exe, 這是 visual c++ 2005 dll .</p>
<p>6. 定時執行</p>
<p style="padding-left: 30px;">如果 IP 有變的話就會更新 dyndns, 因為用 windows, 所以採用的是 schtasks.<br />
相關的說明可以上 Microsoft <a href="http://technet.microsoft.com/en-us/library/cc725744.aspx" target="_blank" rel="noopener">Schtasks</a> 網站看<br />
用下面這個指令就可以讓 script 每 5 分鐘執行一次<br />
# schtasks /create /tn &#8220;Check IP&#8221; /tr c:\TEST\run.bat /sc minute /mo 5</p>
<p>大.功.告.成.</p>
<p>&nbsp;</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2014/10/09/1674/%e8%87%aa%e5%b9%b9-dyndns/">自幹 dyndns</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2014/10/09/1674/%e8%87%aa%e5%b9%b9-dyndns/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>3gp 批次轉檔</title>
		<link>https://blog.richliu.com/2010/03/31/895/3gp-%e6%89%b9%e6%ac%a1%e8%bd%89%e6%aa%94/</link>
					<comments>https://blog.richliu.com/2010/03/31/895/3gp-%e6%89%b9%e6%ac%a1%e8%bd%89%e6%aa%94/#comments</comments>
		
		<dc:creator><![CDATA[richliu]]></dc:creator>
		<pubDate>Wed, 31 Mar 2010 05:48:03 +0000</pubDate>
				<category><![CDATA[Software]]></category>
		<category><![CDATA[3gp]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[轉檔]]></category>
		<guid isPermaLink="false">http://blog.richliu.com/?p=895</guid>

					<description><![CDATA[<p>舊手機要將 wmv 轉成 3gp 才可以播, 在 Linux 下的批次轉檔可以參考 [轉檔] Using ff [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2010/03/31/895/3gp-%e6%89%b9%e6%ac%a1%e8%bd%89%e6%aa%94/">3gp 批次轉檔</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></description>
										<content:encoded><![CDATA[<p>舊手機要將 wmv 轉成 3gp 才可以播, 在 Linux 下的批次轉檔可以參考<a href="http://blog.richliu.com/2007/04/24/471/" target="_blank"> [轉檔] Using ffmpeg to convert wmv to 3gp</a></p>
<p>Windows 下用 <a href="http://www.dvdvideosoft.com/products/dvd/Free-3GP-Video-Converter.htm" target="_blank" rel="noopener">Free 3GP Video Converter</a> 轉檔程式還不錯, 比 WinAVI 的好用.</p>
<p>The post <a rel="nofollow" href="https://blog.richliu.com/2010/03/31/895/3gp-%e6%89%b9%e6%ac%a1%e8%bd%89%e6%aa%94/">3gp 批次轉檔</a> appeared first on <a rel="nofollow" href="https://blog.richliu.com">richliu&#039;s blog</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://blog.richliu.com/2010/03/31/895/3gp-%e6%89%b9%e6%ac%a1%e8%bd%89%e6%aa%94/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
