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/18 05:42] – 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 | ||
Line 259: | Line 255: | ||
value1 LSS value2 | value1 LSS value2 | ||
value1 LEQ value2 | value1 LEQ value2 | ||
- | value1 GTR value2 | + | value1 GTR value2 |
- | value1 GEQ value2 | + | value1 GEQ value2 |
To force a string comparison, enclose '' | To force a string comparison, enclose '' |
ops102/windows_scripting.1731908574.txt.gz · Last modified: 2024/11/18 05:42 by chris