Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Launch Windows Explorer from Windows DOS prompt

by davidrw (Prior)
on Apr 07, 2006 at 15:16 UTC( #541882=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my ($dir, $file);
    while( readdir DIR ){
    ...
    $cwd .= "/" . ($dir || $file || '.');
    $cwd =~ s#/#\\#g;
    warn $cwd;
    
  2. or download this
    my @listing = sort { -d $b <=> -d $a || $a cmp $b } grep { ! /^\.\.?$/
    + } readdir DIR;
    $cwd .= "/" . ($listing[0] || '.');
    $cwd =~ s#/#\\#g;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://541882]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (8)
As of 2016-08-30 12:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (418 votes). Check out past polls.