Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 browsing the Monastery: (9)
As of 2014-12-26 18:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (174 votes), past polls