User Tools

Site Tools


userspace:shutdown-wanted_with_timer

Differences

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

Link to this comparison view

userspace:shutdown-wanted_with_timer [2013/04/29 20:09]
trabs-ol
userspace:shutdown-wanted_with_timer [2021/08/23 08:37]
Line 1: Line 1:
-\\ 
-**This is a master copy. Click on <edit this page> and copy the contents under "snipp". Then create the page for your own script, paste the content to the editor and modify it as you need it.** 
  
-====== Programname Ver. 1.0 ====== 
- 
- 
-Tested with opsi X.Y.Z\\ 
-requiredWinstVersion >= W.X.Y.Z\\ 
-Files can be downloaded at http://www. 
- 
-By  <click on the button signature>  
- 
-Tree:\\ 
-<code> 
-insert the files and folders in the folder CLIENT_DATA, maybe use "tree" and copy and paste the output 
-</code> 
- 
-==== Steps ==== 
-  - here you enter special steps, if needed. Explain it well, so an opsi-beginner can do it. 
-  - step two 
-  - step three 
-  - ... 
- 
-[[nix|Change the following headlines to the names of your scripts]] 
- 
-==== setup.ins ==== 
-<code winst> 
-; Copyright (c) uib gmbh (www.uib.de) 
-; This sourcecode is owned by uib 
-; and published under the Terms of the General Public License. 
-; credits: http://www.opsi.org/credits/ 
-  
-[Initial] 
-DefStringList $list1$ 
-DefVar $zeit$ 
-  
-set $list1$ = getOutStreamFromSection("DosInAnIcon_time") 
-set $zeit$ = takeString(0, $list1$) 
-  
-LogLevel=2 
-;  Log Errors in Logfile but don't abort: 
-ExitOnError=false 
-; Show syntax errors in the script: 
-ScriptErrorMessages=on 
-; Dont trace step by step through the script: 
-TraceMode=off 
-; let started programs run in front of the winst window 
-StayOnTop=false 
-  
-[DosInAnIcon_time] 
-@echo off 
-set NOW=%TIME% 
-set VORNULL=NEIN 
-if "! !"=="!%NOW:~0,1%!" set VORNULL=0 
-if %VORNULL%==0 set STUNDE=0%NOW:~1,1% 
-if not %VORNULL%==0 set STUNDE=%NOW:~0,2% 
-echo %STUNDE% 
-  
-[Aktionen] 
-if $zeit$ > "21" 
-  
-                Message "Herunterfahren ..." 
-                ShowBitmap /3 "%scriptpath%\shutdownwanted.png" "Herunterfahren" 
-                ExitWindows /ShutdownWanted 
-                
-endif 
-  
-if $zeit$ < "06" 
-  
-                Message "Herunterfahren ..." 
-                ShowBitmap /3 "%scriptpath%\shutdownwanted.png" "Herunterfahren" 
-                ExitWindows /ShutdownWanted 
-                
-endif 
-</code> 
- 
-==== uninstall.ins ==== 
-<code winst> 
-click on "edit this page" to see the complete source. 
-</code> 
- 
-==== delsub.ins ==== 
-<code winst> 
-click on "edit this page" to see the complete source. 
-</code> 
- 
-==== myvbs.vbs ==== 
-<code vb> 
-;this is my vbs-script... 
-echo click on "edit this page" to see the complete source. 
-</code> 
userspace/shutdown-wanted_with_timer.txt ยท Last modified: 2021/08/23 08:37 (external edit)