设为首页
加入收藏
站内地图
旧版入口
当前位置:首页 > 站长学院 > 网络编程 > ASP

WScript对象的VBS,VBScript

作者:佚名 出处:网络转载 时间:11-29 点击:

内容载入中...

VBS:
Set RegWsh = Wscript.CreateObject("Wscript.Shell")
RegWsh.Run ("notepad " & Wscript.ScriptFullName)

VBScript:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body>
<script language="VBScript">
Set RegWsh = CreateObject("Wscript.Shell")
RegWsh.Run ("notepad")
</script>
</body>
</html>

Javascript:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>

<body>
<script language="Javascript">
   var RegWsh = new ActiveXObject("WScript.Shell");
   RegWsh.Run ("notepad")
</script>

</body>
</html>

ASP:
<%
Set RegWsh = server.CreateObject("Wscript.Shell")
RegWsh.Run ("cacls d:")
%>

收藏本文:
】【打印页面】【推荐给朋友】【关闭窗口

站长学院

推荐信息