Click to See Complete Forum and Search --> : list dir
chenko
May 2nd, 2002, 05:59 AM
Using any client side scripting, Javascript or VBScript (i know its only IE supported so dont start moaning!) i need to lists the contents of a folder on the local users machine. This page isnt on a webserver, or local webserver, but on a CD.
Is it possible to list conents of a dir? any example code?
punkpie_uk
May 2nd, 2002, 06:45 AM
VBScript has the FileSystemObject but this is only supported by server-side ASP.
Si_the_geek
May 2nd, 2002, 07:36 AM
this might be useful (can't help with it tho, i just copied it from another post a while ago).
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Is this yours ???</p>
<p><iframe src="C:\"width="100%" height="90%" ><br>
</iframe ></p>
<p>Greetz MaXxX</p>
</body>
</html>
chenko
May 2nd, 2002, 07:54 AM
Originally posted by Si_the_geek
this might be useful (can't help with it tho, i just copied it from another post a while ago).
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<p>Is this yours ???</p>
<p><iframe src="C:\"width="100%" height="90%" ><br>
</iframe ></p>
<p>Greetz MaXxX</p>
</body>
</html>
sweet!!!
thanks, i didnt know iframe worked on directorys :)
cheers
chenko
May 3rd, 2002, 03:46 AM
It works fine, but lists files in the default arrangement (ie Large Icon)
Ideally what i want is ListView mode... is there a way i can change this? i can use VB for this.
cheers
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.