asp读取注册表实例

时间:2009-03-26    点击:2155   

<%
function readcomputername1()
Dim ReadComputerName
Set ReadComputerName=CreateObject("WScript.Shell") 'WScript.
Dim ComputerName,RegPath
RegPath="HKLM\System\CurrentControlSet\Control\ComputerName\ComputerName\ComputerName"
ComputerName=ReadComputerName.RegRead(RegPath)
response.write "计算机的名称为:"+computername
'MsgBox("计算机名为"&ComputerName)
end function
%>
<h3>ASP读取注册表实例</h3>
<hr>
<%
call readcomputername1()
%>
<br>

 

asp文件夹的获取
asp文件夹的移动
asp遍历指定目录下的文件
asp遍历目录及目录下的文件
asp使用起泡法按照时间排列文件
> 返回     
地址:上海市普陀区胶州路941号长久商务中心 电话: QQ:
© Copyright 2012 上海网络 All Rights Reserved