in reply to Re: short dir listing
in thread short dir listing

$cmd = quotemeta($cmd); RESULT: cmd = dir\ \/b\ L\:\\Dir\\To\\Scan\\\*\.bat Parameter format not correct - "b\".

Replies are listed 'Best First'.
Re: Re: Re: short dir listing
by Rich36 (Chaplain) on Oct 23, 2002 at 18:04 UTC

    Either use forward slashes in the dir name instead of backslashes or escape the backslashes in your dir name.

    $dir = 'L:/Dir/To/Scan'; # or $dir = "L:\\Dir\\To\\Scan";

    «Rich36»