客户端要有足够的权限。
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<script language="VBScript">
Set fs =CreateObject("Scripting.FileSystemObject")
set a = fs.CreateTextFile("c:\test.txt", True)
a.WriteLine("c:是否有test.txt文件出现?")
a.Close
</script>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>无标题文档</title>
</head><body>
<script language="VBScript">
Set fs =CreateObject("Scripting.FileSystemObject")
set a = fs.CreateTextFile("c:\test.txt", True)
a.WriteLine("c:是否有test.txt文件出现?")
a.Close
</script>
</body>
</html>
小弟这厢有礼了,千万千万帮忙!!!!
小弟这厢有礼了,千万千万帮忙!!!!
实现的效果和你说得也一样。
你可以把那个cookie.expire的时间设的长一些,
名字起的特殊一些就不怕别的网站把你的变量给占用了!