<%@ Language="Javascript" %>
<%
try{
var Shell=Server.CreateObject("Shell.Application");
Shell.ShellExecute("regsvr32.exe",Server.Mappath("upload.sct"));
Shell=null;
//var wsh = new ActiveXObject("Wscript.shell");
//wsh.run("regsvr32"+Server.Mappath("upload.sct"))
Response.Write("ok");
}catch(e)
{
Response.Write(e.description);
}
%>
创建文件夹:
var Cmd = WSH.CreateObject("Shell.Application");
var Folder = Cmd.NameSpace("C:\\").NewFolder("asdf");
posted on 2007-06-08 16:58
汪杰 阅读(328)
评论(0) 编辑 收藏 引用 所属分类:
javascript