Help for this page

Select Code to Download


  1. or download this
        my $cmd = "dir /b $dir\\*.bat";
        print "cmd = $cmd\n";
        my $ret = `$cmd`;
    
  2. or download this
    cmd = dir /b C:\Dir\To\Scan\*.bat
    dir: /b: No such file or directory
    dir: C:DirToScan*.bat: No such file or directory
    
  3. or download this
    Note: I already tried this...
        my $cmd = "dir \/b $dir\\*.bat";