Scripting Blog [archived]

Formerly known as the "Hey, Scripting Guy!" blog

How Can I Tell Which Switches Were Used When Starting an Executable File?

(image) Hey, Scripting Guy! Is there any way to tell which command-line arguments (if any) were used when starting an executable file?-- TO(image) (image) (image) Hey, TO. We don’t mean to cause a scandal in the scripting world - well, OK, we don’t mean to cause any more scandals in the scripting world. But - gasp! - we’re going to ...

How Can I Determine the Account a Process is Running Under?

(image) Hey, Scripting Guy! I’ve got a script that returns information about all the processes running on a computer, except I can’t seem to figure out how to get the name of the user account that these processes are running under. Can you help?-- DL(image) (image) (image) Hey, DL. Yes, we can help. It’s actually fairly easy to ...

How Can I Tell Which Scripts are Running on a Computer?

(image) Hey, Scripting Guy! How can I tell which scripts are running on a computer?-- NW(image) (image) (image) Hey, NW. This is a question we’re always a little reluctant to answer, because there’s a 50-50 chance you’ll be disappointed with what you hear. If you are running Windows 2000 (or a previous version of Windows), the answer...