@echo off
:: START FILE GetNiceTime.cmd ====================================================
:: HAVING THE FOLLOWING DATE TIME FORMATS time is 21:30:27,47 and date is to 20.05.2010
:: START USAGE ==================================================================
:: SET THE NICETIME
:: SET NICETIME=BOO
:: CALL GetNiceTime.cmd
:: ECHO %COMPUTERNAME% GETS HOSTNAME
:: ECHO NICETIME IS %NICETIME%
:: echo nice time is %NICETIME%
:: END USAGE ==================================================================
echo set hhmmsss
:: this is Regional settings dependant so tweak this according your current settings
for /f "tokens=1-3 delims=,: " %%a in ('echo %time%') do set hhmmsss=%%a%%b%%c
for /f "tokens=1-3 delims=,: " %%a in ('echo %time%') do set _hhmmsss=%%a:%%b:%%c
:: DEBUG PAUSE
ECHO hhmmsss IS %hhmmsss%
:: DEBUG PAUSE
echo %yyyymmdd%
:: this is Regional settings dependant so tweak this according your current settings
for /f "tokens=2-4 delims=. " %%D in ('echo %DATE%') do set yyyymmdd=%%F%%E%%D
for /f "tokens=2-4 delims=. " %%D in ('echo %DATE%') do set _yyyymmdd=%%F.%%E.%%D
::DEBUG ECHO yyyymmdd IS %yyyymmdd%
:: DEBUG PAUSE
set NICETIME=%yyyymmdd%_%hhmmsss%
set _NICETIME=%_yyyymmdd% - %_hhmmsss%
:: THIS NEEDS THE CLIP.EXE command line tool from the windows server 2003 resource kit
echo %NICETIME% | CLIP
:: DEBUG PAUSE
echo THE NICETIME IS %NICETIME%
echo THE _NICETIME IS %_NICETIME%
:: DEBUG PAUSE
:: =========END FILE GetNiceTime.cmd ====================================================
Getting the Current TabItem when the Tab is not selected in WPF
-
[image: Banner]
This is a quick reminder to self on how to retrieve a TabItem from a WPF
TabControl *when the tab is not currently selected* because I ru...
1 month ago
No comments:
Post a Comment
- the first minus - Comments have to be moderated because of the spammers
- the second minus - I am very lazy at moderating comments ... hardly find time ...
- the third minus - Short links are no good for security ...
- The REAL PLUS : Any critic and positive feedback is better than none, so your comments will be published sooner or later !!!!