Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TorgoX (1933)


"Il est beau comme la retractilité des serres des oiseaux rapaces [...] et surtout, comme la rencontre fortuite sur une table de dissection d'une machine à coudre et d'un parapluie !" -- Lautréamont

Journal of TorgoX (1933)

Friday July 25, 2003
01:16 PM

.bat amusements

[ #13690 ]
Dear Log,

My amusement today consists of two weensy batch files I cooked up for use under MSWin:

select.bat, consisting of just this line:
explorer /select,%1

and openwith.bat, consisting of just this line:
rundll32 shell32.dll,OpenAs_RunDLL %1

The first one opens a directory window on the parent directory of the item named, and highlights the item.

The second one opens a "what do you want to open this file with?" dialogue box.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.
  • As a variation to your first .bat file, here's a way to open explorer on a file in "explore" mode:
    explorer /e,/select,%1
    You might have to press "tab" to actually select the file.
    • The command line options for Explorer are explained here []. Despite the claim at the top of the article, these, at least, also work for Win98.
      • Thanks, I looked all over for that, and only ever found a partial list!

        I really miss when Microsoft made programs where you could do "progname /?" and get a list of all the switches.

        And when I am the cruel Kommissar of these things, "progname /?dll" will also list all the DLL functions this program supports.

        I know, this is all CRAZY TALK!