Beginner Beginner wrote:
> Hi,
>    I have tried it through command line It is working When i used the same code and 
> put the file  in cgi-bin and try to run
> through explorer it didn't worked
>
> $basedir= "I:/tech/work/web/Documents";
> chdir($basedir) or die $!;
> $test=`dir /s /b *.*`;
> print $test;
>
> If I simply replace I: with D:  It starts working. Please help.

But you haven't told us yet why you think it's not working. If
your program doesn't die then it at least thinks it has done
what you wanted.

Have you checked the server log files to see if your script is
breaking for another reason?

By the way, if your intent is just to form a directory listing
you'd be better off avoiding the backticks and using File::Find
instead.

Rob




-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to