ops102:windows_scripting
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| ops102:windows_scripting [2024/11/29 19:20] – [Conditional Logic: IF/ELSE] chris | ops102:windows_scripting [2025/06/17 12:28] (current) – [Windws vs. Linux Scripting] chris | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Windows Scripting ====== | ====== Windows Scripting ====== | ||
| - | ===== Windws | + | ===== Windows |
| Windows shell scripting is similar to Linux shell scripting in many ways. | Windows shell scripting is similar to Linux shell scripting in many ways. | ||
| Line 78: | Line 78: | ||
| echo The current date is: | echo The current date is: | ||
| date /t | date /t | ||
| - | |||
| - | If this is save into the file named " | ||
| - | |||
| - | $ chmod u+rx now | ||
| The script can then be executed. Normally, the current working directory is not searched, so to run the a script in the current directory, you will need to explicitly specify the directory name like this: | The script can then be executed. Normally, the current working directory is not searched, so to run the a script in the current directory, you will need to explicitly specify the directory name like this: | ||
| - | | + | |
| The current date is: | The current date is: | ||
| 2024-12-11 | 2024-12-11 | ||
ops102/windows_scripting.1732908037.txt.gz · Last modified: 2024/11/29 19:20 by chris
