.bat amusements

TorgoX on 2003-07-25T18:16:56

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.


explore.bat

bart on 2003-07-25T20:05:26

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.

Explorer command line options

bart on 2003-07-26T09:40:05

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.

Re:Explorer command line options

TorgoX on 2003-07-26T14:11:49

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!