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 [2024/11/29 21:02] (current) – chris | ||
---|---|---|---|
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