Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to grab all filenames in a specific dir using javascript

Status
Not open for further replies.

guelph

MIS
Jan 19, 2005
6
0
0
CA
I used a script like this:
<SCRIPT LANGUAGE="JavaScript">
var fso = new ActiveXObject("Scripting.FileSystemObject");
alert("it is right?");
var newpath = fso.BuildPath("c:\\tmp", "kuku.txt");
alert(newpath);
</SCRIPT>
but nothing shows up.
where is wrong?
help me out !!!!!!!!!
 
guelph wrote:
>var newpath = fso.BuildPath("c:\\tmp", "kuku.txt");
What is it, buildpath?
- tsuji
 
guelph,

Sorry, I see BuildPath. Rarely use it. It won't show for only reason of security setting of msie, because fso is considered unsafe. So it is that new ActiveXObject is blocked, not BuildPath not performing. Try lowering the security zone your msie is applying.

- tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top