With Windows PowerShell now in the scripting scene, you might think that Windows shell scripting (.cmd and .bat code) and Windows Script Host (WSH) scripting (.vbs and .js code) are history. However, they are not gone nor have they been forgotten. To showcase the continued usefulness of .cmd, .bat, .vbs, and .js code, Scripting Pro VIP is running a Reader to Reader contest.
Entering is simple: Just send an email that tells me about a .cmd, .bat, .vbs, or .js script or reusable code snippet (e.g., function, subroutine) that you've written. Let me know:
- Why you wrote the code. For example, did you write the script to avoid having to physically visit each remote machine or did you write the reusable function so don't have to continually reinvent the wheel each time you want a script to delete old files from a folder?
- How the code works. For example, does it use Blat to email a file or Windows Management Instrumentation's (WMI's) StdRegProv class to change a registry entry?
- What fellow scripters need to do to use the code. For example, do they need to install Blat on the machine on which they're running the script or customize a path in the code?
. . .