ASP非常奇怪的问题???????????????
我写了一段代码:
<html>
<head>
<Script language="VBScript" runat="server">
dim Fso
dim Exp1
dim path1
dim path2
path2="D:\Documents and Settings\Administrator\桌面\123\tk\WindowsTK\"
set Exp1=server.CreateObject("Wscript.Shell")
set Fso=server.CreateObject("Scripting.FileSystemObject")
function OPenF(P)
path1="Explorer.exe /n,/e, D:\Documents and Settings\Administrator\桌面\123\share\"&p&""
P=path2&P
fso.CopyFolder P,"D:\Documents and Settings\Administrator\桌面\123\share\",true
Exp1.run path1
end function
call OPenF(1)---------->在这调用能通过
</script>
</head>
<body bgcolor=lavender>
<Script language="VBScript" runat="server">
dim m
m=1
response.write("<input type=button name=but2 value='GO!' Onclick=OPenF('"&m&"')>")
</script>
</body>
</html>
我要通过单击按钮来复制问件夹,并用浏览器打开。可是每当单击按钮都说缺少对象!!!!!!直接调用却可以,不知为什么?请指教!