@echo off
:: GetSystemInfo.cmd
:: A simple cmd script for diagnostics - docs at the end !!!
::SET THE LOG FILE
set LOG=System_Info_for_%COMPUTERNAME%.txt
ECHO THIS SCRIPT WILL THE BASIC INFO FOR THE WINDOWS HOST IT IS RUN ON
ECHO AND WILL SAVE IT TO A FILE CALLED %LOG%
ECHO IN THE CURRENT DIRECTORY AND OPEN IT BEFORE IT CLOSES
::SLEEP FOR 3 SECONDS
ping localhost -n 6 >NUL
PAUSE
::CLEAR THE SCREEN
CLS
ECHO TODAY IS %DATE%>%LOG%
ECHO THE TIME IS %TIME%>>%LOG%
ECHO RUNING ON %COMPUTERNAME%>>%LOG%
ECHO RUNNING FROM %CD%>>%LOG%
ECHO.>>%LOG%
ECHO.>>%LOG%
ECHO =================================================>>%LOG%
ECHO LOGGING THE SYSTEM INFO ...PLEASE WAIT
ECHO SYSTEM INFO >> %LOG%
ECHO RUNNING COMMAND:SYSTEMINFO>> %LOG%
SYSTEMINFO >> %LOG%
::SLEEP FOR 3 SECONDS
for /l %%i in (1,1,3) do CLS&@echo off&ECHO LOGGING THE SYSTEM INFO ...PLEASE WAIT %%i&ping localhost -n 2 >NUL
::CLEAR THE SCREEN
CLS
ECHO.>>%LOG%
ECHO.>>%LOG%
ECHO =================================================>>%LOG%
ECHO LOGGING THE NETWORK SETTINGS ... PLEASE WAIT
ECHO THE NETWORK SETTINGS : >>%LOG%
ECHO RUNNING COMMAND:IPCONFIG /ALL >> %LOG%
IPCONFIG /ALL >>%LOG%
::SLEEP FOR 3 SECONDS
for /l %%i in (1,1,3) do @CLS&ECHO LOGGING THE NETWORK SETTINGS ... PLEASE WAIT %%i&ping localhost -n 2 >NUL&CLS
ECHO.>>%LOG%
ECHO.>>%LOG%
ECHO =================================================>>%LOG%
ECHO LOGGING THE RUNNING SERVICES
ECHO RUNNING COMMAND:NET START>> %LOG%
NET START >>%LOG%
::SLEEP FOR 3 SECONDS
for /l %%i in (1,1,3) do CLS&ECHO LOGGING THE RUNNING SERVICES %%i&ping localhost -n 2 >NUL&CLS
ECHO.>>%LOG%
ECHO.>>%LOG%
ECHO =================================================>>%LOG%
ECHO LOGGING THE RUNNING PROGRAMS
ECHO RUNNING COMMAND:NET START>> %LOG%
TASKLIST /V >>%LOG%
::SLEEP FOR 3 SECONDS
for /l %%i in (1,1,3) do CLS&ECHO LOGGING THE RUNNING PROGRAMS %%i&ping localhost -n 2 >NUL&CLS
ECHO DONE
::SLEEP FOR 3 SECONDS
for /l %%i in (1,1,3) do CLS&ECHO DONE %%i&ping localhost -n 2 >NUL&CLS
::NOW OPEN THE FILE
CMD /C %LOG%
exit
:: ============================================================================
::
:: Yordan Georgiev v.1.1.20100904_195758
:: License:BSD, Disclaimer:Do not sue me when the sh.t hits the fan !!!
::
:: ============================================================================
::
:: Tested on Win 7 OS Version 6.1.7600
::
:: ============================================================================
::
:: VERSION HISTORY
:: 1.0 --- Initial creation the system info command , logging
:: 1.1 --- Added the ipconfig /all and net start commands , improve output
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 week 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 !!!!