Use System.Diagnostics.Debug.WriteLine() in C# to generate print outs that can be displayed in the excellent tool DebugView.
In VB6, use OutputDebugString().
tisdag 21 december 2010
onsdag 10 november 2010
tisdag 9 november 2010
Command window here
On Windows 7:
Use SHIFT+right_click in Windows Explorer to get a lot more features. For example "Open command window here".
Use SHIFT+right_click in Windows Explorer to get a lot more features. For example "Open command window here".
tisdag 2 november 2010
Find crash dump file
On Windows XP Dr Watson is the default tool that generates crash dump files. They are sent to Microsoft if you accept the dialog box after a program crash.
Dr Watson
This is the default location for dump files: C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson\user.dmp
To bring up the GUI: drwtsn32.exe
Use Windbg to analyze the crash dump file. Included in Windows SDK, debugging tools. The PDB-files for the crashing app is needed to make any sense of the dump file.a
In Windows 7, Dr Watson is replaced by the Action Center. Use Task Manager and right click on the process and select "Create Dump File".
Dr Watson
This is the default location for dump files: C:\Documents and Settings\All Users\Application Data\Microsoft\Dr Watson\user.dmp
To bring up the GUI: drwtsn32.exe
Use Windbg to analyze the crash dump file. Included in Windows SDK, debugging tools. The PDB-files for the crashing app is needed to make any sense of the dump file.a
In Windows 7, Dr Watson is replaced by the Action Center. Use Task Manager and right click on the process and select "Create Dump File".
onsdag 27 oktober 2010
Windows trouble shooter
Here is good help: msconfig.exe
Just enter "msconfig.exe" from Start menu/Run.
Just enter "msconfig.exe" from Start menu/Run.
tisdag 7 september 2010
onsdag 1 september 2010
torsdag 25 februari 2010
onsdag 10 februari 2010
The quick brown fox jumps over the lazy dog
Type the following sentence in MS Word 2007 and hit Enter.
=rand.old(4,5)
=rand.old(4,5)
tisdag 2 februari 2010
Character encoding, UTF-8
Nice tool for finding UTF-8 encoding of Unicode characters.
http://www.ltg.ed.ac.uk/~richard/utf-8.cgi?input=%C5&mode=char
http://www.ltg.ed.ac.uk/~richard/utf-8.cgi?input=%C5&mode=char
fredag 29 januari 2010
Registry Keys
Display version of Internet Explorer installed on the current system:
cmd /k reg query "HKLM\SOFTWARE\Microsoft\Internet Explorer" /v Version
cmd /k reg query "HKLM\SOFTWARE\Microsoft\Internet Explorer" /v Version
fredag 8 januari 2010
Cscript
"cscript" is used for running java scripts from command line.
Microsoft (R) Windows Script Host Version 5.7
Microsoft (R) Windows Script Host Version 5.7
Prenumerera på:
Inlägg (Atom)