建議你使用注冊(cè)表的API進(jìn)行修改

我們提供的服務(wù)有:成都網(wǎng)站設(shè)計(jì)、網(wǎng)站建設(shè)、微信公眾號(hào)開發(fā)、網(wǎng)站優(yōu)化、網(wǎng)站認(rèn)證、徐匯ssl等。為成百上千家企事業(yè)單位解決了網(wǎng)站和推廣的問題。提供周到的售前咨詢和貼心的售后服務(wù),是有科學(xué)管理、有技術(shù)的徐匯網(wǎng)站制作公司
封裝兩個(gè)NET函數(shù)給你
private?string?GetReg(string?RegPath)??取得注冊(cè)表項(xiàng)內(nèi)容
{
string?str="";
RegistryKey?hkml?=?Registry.LocalMachine;?
RegistryKey?software?=?hkml.OpenSubKey("SOFTWARE",true);?
RegistryKey?aimdir?=?software.OpenSubKey("krabs",true);
if?(aimdir?!=?null)
{
if?(aimdir.GetValue(RegPath)?!=?null)
str?=?aimdir.GetValue(RegPath).ToString();
if?(str?!=?null)
return?str;
return?null;
}
return?null;
}
private?bool?SetReg(string?RegPath,string?Data)??//設(shè)置注冊(cè)表內(nèi)容
{
RegistryKey?reg?=?Registry.LocalMachine;
RegistryKey?software?=?reg.OpenSubKey("SOFTWARE",?true);
RegistryKey?aimdir1?=?software.CreateSubKey("krabs");
if?(aimdir1?==?null)
return?false;
aimdir1.SetValue(RegPath,?Data);
return?true;
}
response.write "br全路徑:http://"Request.ServerVariables("HTTP_HOST")Request.ServerVariables("SCRIPT_NAME")
response.write "br來原頁:"Request.ServerVariables("HTTP_REFERER")
response.write "br主機(jī)名:"Request.ServerVariables("SERVER_NAME")
response.write "br絕對(duì)路:"Request.ServerVariables("SCRIPT_NAME")
response.write "br文件夾:"left("http://"Request.ServerVariables("HTTP_HOST")Request.ServerVariables("SCRIPT_NAME"),InStrRev("http://"Request.ServerVariables("HTTP_HOST")Request.ServerVariables("SCRIPT_NAME"),"/"))
如下兩種方法,
1,
采用默認(rèn)的瀏覽器打開FTP站點(diǎn),不需要知道IE在什么地方,建議采用。
Shell("rundll32
url.dll
FileProtocolHandler
")
2,采用IE打開,只要更改為你的ie路徑就可以了。不建議使用這個(gè)方法。
Shell("C:\Program
Files\Internet
Explorer\iexplore.exe
")
網(wǎng)站標(biāo)題:關(guān)于vb.net訪問ie鏈接的信息
分享地址:http://chinadenli.net/article9/dsephih.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供品牌網(wǎng)站設(shè)計(jì)、全網(wǎng)營銷推廣、虛擬主機(jī)、網(wǎng)站設(shè)計(jì)、搜索引擎優(yōu)化、做網(wǎng)站
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請(qǐng)盡快告知,我們將會(huì)在第一時(shí)間刪除。文章觀點(diǎn)不代表本網(wǎng)站立場(chǎng),如需處理請(qǐng)聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時(shí)需注明來源: 創(chuàng)新互聯(lián)