Topic: Java问题请大虾来帮帮!! (not Java, but JavaScript with FileSystemObject)

  Print this page

1.Java问题请大虾来帮帮!! (not Java, but JavaScript with FileSystemObject) Copy to clipboard
Posted by: Vance
Posted on: 2004-08-09 12:31

<SCRIPT>
var fso, f, r
var ForReading = 1, ForWriting = 8;
fso = new ActiveXObject("Scripting.FileSystemObject")
f = fso.OpenTextFile(".\\testfile.txt", ForWriting, true)
f.Write("Hello world!");
f.Close();
f = fso.OpenTextFile(".\\testfile.txt", ForReading);
r = f.ReadLine();
document.write(r);
</SCRIPT>
为什么我这个testfile.txt创建在我自己的桌面上!!而不是创建在我服务器的当前目录下!!
请问我是不是函数用错了!!!!!!!!!!

2.Re:Java问题请大虾来帮帮!! [Re: Vance] Copy to clipboard
Posted by: j8eej8ee
Posted on: 2004-08-09 12:32

js是client side 脚本.

3.Re:Java问题请大虾来帮帮!! [Re: Vance] Copy to clipboard
Posted by: Vance
Posted on: 2004-08-09 16:16

哦!!只能在客户端阿??郁闷!!!

4.Re:Java问题请大虾来帮帮!! [Re: Vance] Copy to clipboard
Posted by: elysium922
Posted on: 2004-08-09 16:48

Besides, this is a JavaScript problem, it has nothing to do with Java

5.Re:Java问题请大虾来帮帮!! [Re: Vance] Copy to clipboard
Posted by: Vance
Posted on: 2004-08-09 19:25

你们英文都好好!!我看不懂啊??哈哈

6.Re:Java问题请大虾来帮帮!! [Re: Vance] Copy to clipboard
Posted by: why
Posted on: 2004-08-10 06:10

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/script56/html/jsfsotutor.asp

can't find its equivalent on http://www.microsoft.com/china/

7.Re:Java问题请大虾来帮帮!! (not Java, but JavaScript with FileSystemObject) [Re: Vance] Copy to clipboard
Posted by: Vance
Posted on: 2004-08-10 11:58

是中国人哇??怎么都是英文阿??郁闷!!!!!!大概我来错地方了!

8.Re:Java问题请大虾来帮帮!! (not Java, but JavaScript with FileSystemObject) [Re: Vance] Copy to clipboard
Posted by: why
Posted on: 2004-08-10 23:15

这不是有关 Java 的问题,而是关于JavaScript 和 Micro$oft 咚咚的问题。
请您在各大 ASP 的“中文”网站查查吧。

人在枫叶国,身边的电脑未必可以输入中文,所处的环境也可能不宜用中文。
无论如何, 假如几句简单的英语也看不懂的话,在IT(不知中文是啥?资讯科技?)这行头会大大吃亏的──郁闷似乎难免矣。Sad


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923