BEGIN {i=1} { printf("%s %s\n", i, $0) i = i + 1 }
Category: Scripting
How can you obtain a list of the email addresses in a distribution list? If your version of Exchange does not have this functionality built-in, you can use one of the following options.
Continue reading
When using cmd.exe, you can put multiple commands on the same line by using ‘&’ or ‘&&’ between commands. Using a single ampersand (&) will cause the first command and then the second command to be run in sequence. Using double ampersands (&&) introduces error checking. The second command will run only if the first command is successful.
Continue reading
The %~dp0 (that’s a zero) variable when referenced within a Windows batch file will expand to the drive letter and path of that batch file.
Continue reading
Let’s suppose you’re working at a Windows computer and you want to do something from the command prompt. Let’s further suppose that the computer is locked down pretty well, including denying users permission to run cmd.exe and disabling use of the Run dialogue box. Continue reading