A personal repository of technical notes. - CSC

Windows Explorer Command-Line Options for Windows XP

BAT file code
@echo off
start %SystemRoot%\explorer.exe /n,/root, "C:\MyFolder"


References
"Explorer.exe Command-Line Options for Windows XP." Microsoft Support. Web. 24 Dec. 2009. <http://support.microsoft.com/kb/314853>.

The options that you can use with Explorer.exe are /n, /e, /root (plus an object), and /select (plus an object).

Option            Function
----------------------------------------------------------------------
/n Opens a new single-pane window for the default
selection. This is usually the root of the drive that
Windows is installed on. If the window is already
open, a duplicate opens.

/e Opens Windows Explorer in its default view.

/root,<object> Opens a window view of the specified object.

/select,<object> Opens a window view with the specified folder, file,
or program selected.

CSS Nested Lists

  

<ol style="list-style-type: decimal;">

<li>aaa

<ol style="list-style-type: lower-alpha;">

<li>aaa</li>

<li>bbb

<ol style="list-style-type: lower-roman;">

<li>aaa</li>

<li>bbb</li>

<li>ccc</li>

</ol>

</li>

<li>ccc</li>

</ol>

</li>

<li>bbb</li>

<li>ccc</li>

</ol>

  1. aaa
    1. aaa
    2. bbb
      1. aaa
      2. bbb
      3. ccc
    3. ccc
  2. bbb
  3. ccc

How to Debug JavaScript

Problem
Debugging JavaScript in Firefox
Debugging JavaScript in IE

Solution for Debugging JavaScript in Firefox

Firebug Method:
  1. Open page to debug in Firefox
  2. Start Firebug
  3. Click on the "Script" tab on top of Firebug pane
  4. Assign break points and step through code as you would with VS2005
Solution for Debugging JavaScript in IE6

Debugger line method:
  1. IE: Tools/Internet Options/Advanced Tab/Uncheck "Disable Script Debugging"
  2. VS: Add following line to JavaScript code:
    debugger;
  3. Add breakpoint to line above
  4. Remove line above after debugging complete
VS2005 Attach to Process Method:
  1. IE: Tools/Internet Options/Advanced Tab/Uncheck "Disable Script Debugging"
  2. VS: Solution Explorer/Right-Click .ASPX/View in Browser
  3. VS: Debug/Attach to Process...
    1. Attach to: Click Select.../Check Script
    2. Available Processes/Select iexplore.exe of .ASPX
    3. Click Attach
  4. VS: Debug/Windows/Script Explorer
  5. VS Script Explorer: Double-Click page to open scipt for setting break points

Visual Studio Documentation Comments for C#

Tip
Include XML Documentation Comments in C# code:

<c>
<code>
<example>
<exception>
<include>
<list>
<para>
<param>
<paramref>
<permission>
<remarks>
<returns>
<see>
<seealso>
<summary>
<typeparam>
<typeparamref>
<value>

References
"Recommended Tags for Documentation Comments (C#)." MSDN: Microsoft Development, MSDN Subscriptions, Resources, and More. Web. 02 Dec. 2009.
<http://msdn.microsoft.com/en-us/library/5ast78ax%28VS.80,loband%29.aspx>.