如何讓工作排程在背景執行
執行身分選擇SYSTEM,就可以不顯示任何視窗。
 

abort 發表在 痞客邦 留言(0) 人氣()

Windows 7刪除資料夾或檔案出現"找不到此項目"

在刪除檔案或資料夾時出現「找不到此項目」的訊息,是Win7的bug之一。

解決方法一:

abort 發表在 痞客邦 留言(0) 人氣()

查詢拿個process占用port

1.找哪個PID使用80PORT
netstat -nao |find "0.0.0.0:80"

abort 發表在 痞客邦 留言(0) 人氣()

ASP 中 ANSI、UTF-8 檔案編碼與 Server.HTMLEncode
在不同的檔案編碼中Server.HTMLEncode執行結果不同
Response.Write(Server.HTMLEncode("日文字"))
如果上述程式碼位於 ANSI 檔案編碼的 ASP 中,則輸出為:中文編碼或亂碼。
如果上述程式碼位於 UTF-8 檔案編碼的 ASP 中,則輸出為:&#+U;編碼。

abort 發表在 痞客邦 留言(0) 人氣()

$EndDatetime = Get-Date
for ($i=1; $i -le 1000; $i++) {
$query_year = $EndDatetime.AddDays(-$i).Year;
$query_Cyear = ($EndDatetime.AddDays(-$i).Year-1911).ToString("000");
$query_month = $EndDatetime.AddDays(-$i).Month.ToString("00");
$query_day = $EndDatetime.AddDays(-$i).Day.ToString("00");
$query_date = "$query_year%2F$query_month%2F$query_day";
$outputfilename = "$query_year-$query_month-$query_day";
$url = "";
$path = "D:\test\$outputfilename.html";
$client = new-object System.Net.WebClient;
$client.DownloadFile( $url, $path );
}

abort 發表在 痞客邦 留言(0) 人氣()

可以替代MD5或SHA的雜湊新技術「BLAKE2」
執行時使用更少記憶體,安全性高於md5與Sha-1與Sha-2,執行速度與MD5相近



abort 發表在 痞客邦 留言(0) 人氣()

有問題的換頁
<div style=”page-break-after:always; clear:both;”></div>
IE8:
<div style=”page-break-after:always; clear:both;”> &nbsp; </div>

abort 發表在 痞客邦 留言(0) 人氣()

修復IIS無法執行.aspx
1.重新安裝.NET 1.x
"%windir%\Microsoft.NET\Framework\v1.1.4322\aspnet_regiis.exe" -i

2.把所需的檔案,複製到IIS的 aspnet_client子目錄

abort 發表在 痞客邦 留言(0) 人氣()

復原windows預設的開啟程式
Restore Default Windows 7 File Extension Type Associations

http://www.sevenforums.com/tutorials/19449-default-file-type-associations-restore.html

abort 發表在 痞客邦 留言(0) 人氣()

Syntax for Debian / Ubuntu Linux

find {/path/to/directory} -type f -size +{file-size-in-kb}k -exec ls -lh {} \; | awk '{ print $8 ": " $5 }'

Search in current directory:

abort 發表在 痞客邦 留言(0) 人氣()

yum update – TypeError: unsubscriptable object

yum update出現TypeError: unsubscriptable object錯誤

先清除yum的舊資料

abort 發表在 痞客邦 留言(0) 人氣()

1.先安裝好憑證
2.預設的GUI無法設定 domain name
3.改用adsutil.vbs來設定domain name,達到安裝多個SSL(443)網站
4.cscript adsutil.vbs set /w3svc/844934796/SecureBindings ":443:mysite.sharepoint.com"
5.adsutil.vbs位於C:\Inetpub\AdminScripts

abort 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。