User Tools

Site Tools


ops102:windows_scripting

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
ops102:windows_scripting [2024/11/29 19:20] – [Conditional Logic: IF/ELSE] chrisops102: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 "now", the permission could be set with this command: 
- 
-  $ 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:
  
-  $ ./now+  now
   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

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki