Introduction
This document provides a guide to Windows scripting, covering essential scripts and concepts.
What is Windows Scripting?
Windows Scripting is a programming language used to automate tasks within Windows operating systems. It allows you to create scripts that run on demand, without requiring a graphical user interface.
Common Scripts
- Windows PowerShell: The primary scripting language for Windows administration.
- Windows Scripting Runtime (WSRT): A layer that allows for scripting in different languages.
- Simple Scripting Language (SSL): A scripting language focused on simple automation tasks.
Example Script - Get Current Date
This script simply retrieves the current date and display it.
function getDate() {
return new Date();
}
console.log(setDate());