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. Thanks, Amit --- "Jenda Krynicky" <[EMAIL PROTECTED]> wrote: >From: "Rob Dixon" <[EMAIL PROTECTED]> >> Beginner Beginner wrote: >> > Hi All, >> > I wanted to search for *.html file on Server which I can >> > mount in my Windows XP: >> > e.g. I drive mapped to tech\work\web\documents. >> > as I:\tech\work\web\documents >> > now i try to go inside this directory >> > as >> > $basedir="I:/tech/work/web/documents"; >> > chdir($basedir); >> > >> > but this is not working I have tried the same with my local drives >> > and it was working fine Don't know why May be you guys can help me >> > out to solve my problem. >> >> Hi Mr B. >> >> How do you know this isn't working? >> >> Perl will give you a reason for failure if you try >> >> chdir $basedir or die $!; > >chdir $basedir or die $^E; > >might give you more info. > >Jenda >===== [EMAIL PROTECTED] === http://Jenda.Krynicky.cz ===== >When it comes to wine, women and song, wizards are allowed >to get drunk and croon as much as they like. > -- Terry Pratchett in Sourcery > > >-- >To unsubscribe, e-mail: [EMAIL PROTECTED] >For additional commands, e-mail: [EMAIL PROTECTED] _____________________________________________________________ Get Your Private, Free Jatt Email at http://www.jatt.com/ _____________________________________________________________ Select your own custom email address for FREE! Get [EMAIL PROTECTED], No Ads, 6MB, IMAP, POP, SMTP & more! http://www.everyone.net/selectmail?campaign=tag -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]