I\'m writing a small command line utility whose purpose is to parse the output of another utility. I want it to be invokable in two ways:
c:\\> myutility file
Looks like you should be able to use some Windows API calls to determine that. Hans Passant's answer even has a helper class to wrap it all up.