The normal output of the Windows NT shell "dir" command looks very much like what you
want, so you could always just capture that with the backtick command:
print `cmd.exe /c dir $path`;
Now, if you want to use a different format or do other things than just display the
directory, you'd be better off with stat.
*********** REPLY SEPARATOR ***********
On 01/02/28 at 17:11 Gray, Martha J. wrote:
>One of the items in the web page I'm working on is the ability to connect to
>specified machines.
>what I want is something like this to show up in the browser window:
>
> Directory of G:\
>
>10/05/00 12:52p <DIR> bilsrv
>10/31/00 11:32a 20 bsck_file
>10/30/00 02:25p <DIR> nisa
>10/02/00 02:27p <DIR> oradata
>01/18/01 03:56p <DIR> temp
>11/20/00 05:22p <DIR> vslick
> 6 File(s) 20 bytes
> 13,475,229,696 bytes free
>
>What I get is just the filenames:
>bilsrv
>bsck_file
>nisa
>oradata
>RECYCLER
>temp
>Temporary Internet Files
>vslick
>
>I'm using IIS, NT4, CGI PM and the following:
> opendir (THISDIR,$path) or die "Directory Error: $!";
> while (defined ($filename = readdir THISDIR)) {
> print "$filename",br;
> }
> closedir (THISDIR)
>
>Does anyone know how to do this?
>TIA,
>Martha
>Martha J. Gray
>Software Developer
>UUNet, a WorldCom Company
>[EMAIL PROTECTED]
>(614)723-4134
>
_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-web