User Tools

Site Tools


talk:userspace:local_user

Differences

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

Link to this comparison view

Next revision
Previous revision
talk:userspace:local_user [2015/06/08 16:38]
test created
talk:userspace:local_user [2021/08/23 08:37] (current)
Line 13: Line 13:
 werden dann zu: werden dann zu:
  
-  set tag=%date:~-10,2% & echo %date:~-10,2%|findstr "^0" && set tag=%date:~-9,1%+  set tag=%date:~-10,2%& echo %date:~-10,2%|findstr "^0" && set tag=%date:~-9,1%
   set monat=%date:~-7,2%& echo %date:~-7,2%|findstr "^0"&& set monat=%date:~-6,1%   set monat=%date:~-7,2%& echo %date:~-7,2%|findstr "^0"&& set monat=%date:~-6,1%
  
 +Damit die Ausgabe von "echo" unterdrückt wird, kann man noch " > nul" einbauen:
 +
 +  set tag=%date:~-10,2%& echo %date:~-10,2%|findstr "^0" > nul && set tag=%date:~-9,1%
 +  set monat=%date:~-7,2%& echo %date:~-7,2%|findstr "^0" > nul && set monat=%date:~-6,1%
 +
 +Mit einem Datum wie "8.6.2015" gab es bei "net user" keine Probleme.
  
  
talk/userspace/local_user.1433781505.txt.gz · Last modified: 2021/08/23 08:37 (external edit)