Difference between revisions of "Windows/CMD"

From braindump
Jump to navigation Jump to search
Line 16: Line 16:


== References ==
== References ==
{{Reflist|1}}
* [http://www.windowsnetworking.com/nt/registry/rtips40.shtml Quick Edit Mode for CMD]
* [http://www.windowsnetworking.com/nt/registry/rtips40.shtml Quick Edit Mode for CMD]
* [http://www.commandline.co.uk/cmdow cmdow]
* [http://www.commandline.co.uk/cmdow cmdow]

Revision as of 23:06, 15 May 2012

There are probably better guides to the Windows CMD shell but this is just a collection of stuff that I used over the years and want to keep close.

Enable Quick Edit Mode

Never quite got why this is not set by default. Here is a quick reg recipie for Windows XP.[1]

reg add HKCU\Console /v QuickEdit /t REG_DWORD /d 1 /f

Disable Quick Edit Mode

There are very few reasons to disable this with the exception that when you select the text in the window an application running currently in that window will stop. I have some stories of mission critical stuff stopping all of a sudden when an operator selected some text in cmd.

reg add HKCU\Console /v QuickEdit /t REG_DWORD /d 0 /f

Preventing CMD from halting the running process when selecting text

If you have mission critical windows processes running in a cmd windows as the same user you may want to make sure they are tamper proof. This will do:

cmdow @ /dis <Command>

References

1 }}
     | references-column-width 
     | references-column-count references-column-count-1 }}
   | {{#if: 
     | references-column-width }} }}" style="{{#if: 1
   | {{#iferror: {{#ifexpr: 1 > 1 }}
     | Template:Column-width
     | Template:Column-count }}
   | {{#if: 
     | Template:Column-width }} }} list-style-type: {{#switch: 
   | upper-alpha
   | upper-roman
   | lower-alpha
   | lower-greek
   | lower-roman = {{{group}}}
   | #default = decimal}};">
  1. {{ #if: |{{ #if: |{{ #iferror: {{ #expr: 1* }} | |Template:Loop }} |{{ #if: |[[ |{{ #if: |, }}]] |{{ #if: |, }} }} }}{{ #if: |{{#ifexpr:8<2 | et al{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.||.}} |{{ #iferror: {{ #expr: 1*0.0 }} | |{{ #if: |{{#ifeq:|;|;|;}} |{{#if:| & |{{#ifeq:|;|;|;}} }} }} }}{{ #if: |[[ |{{ #if: |, }}]] |{{ #if: |, }} }}{{ #if: |{{#ifexpr:8<3 | et al{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.||.}} |{{ #if: |{{#ifeq:|;|;|;}} |{{#if:| & |{{#ifeq:|;|;|;}} }} }}{{ #if: |[[ |{{ #if: |, }}]] |{{ #if: |, }} }}{{ #if: |{{#ifexpr:8<4 | et al{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.||.}} |{{ #if: |{{#ifeq:|;|;|;}} |{{#if:| & |{{#ifeq:|;|;|;}} }} }}{{ #if: |[[ |{{ #if: |, }}]] |{{ #if: |, }} }}{{ #if: |{{#ifexpr:8<5 | et al{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.||.}} |{{ #if: |{{#ifeq:|;|;|;}} |{{#if:| & |{{#ifeq:|;|;|;}} }} }}{{ #if: |[[ |{{ #if: |, }}]] |{{ #if: |, }} }}{{ #if: |{{#ifexpr:8<6 | et al{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.||.}} |{{ #if: |{{#ifeq:|;|;|;}} |{{#if:| & |{{#ifeq:|;|;|;}} }} }}{{ #if: |[[ |{{ #if: |, }}]] |{{ #if: |, }} }}{{ #if: |{{#ifexpr:8<7 | et al{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.||.}} |{{ #if: |{{#ifeq:|;|;|;}} |{{#if:| & |{{#ifeq:|;|;|;}} }} }}{{ #if: |[[ |{{ #if: |, }}]] |{{ #if: |, }} }}{{ #if: |{{#ifexpr:8<8 | et al{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.||.}} |{{ #if: |{{#ifeq:|;|;|;}} |{{#if:| & |{{#ifeq:|;|;|;}} }} }}{{ #if: |[[ |{{ #if: |, }}]] |{{ #if: |, }} }}{{ #if: | et al{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.||.}} }} }} }} }} }} }} }} }} }} }} }} }} }} }} }}{{ #if: |{{#ifeq:|;|;|;}} | }}{{ #if: {{#if:|{{{date}}}| {{#if:|{{{year}}}|}}}} | ({{#if:|{{{date}}}| {{#if:|{{{year}}}|}}}}){{ #if: | [{{{YearNote}}}] }} }} |{{ #if: |{{ #if: |[[ |{{ #if: |, }}]] |{{ #if: |, }} }}{{ #if: |{{ #if: |{{#ifeq:|;|;|;}} |{{#if:| & |{{#ifeq:|;|;|;}} }} }}{{ #if: |[[ |{{ #if: |, }}]] |{{ #if: |, }} }}{{ #if: |{{ #if: |{{#ifeq:|;|;|;}} |{{#if:| & |{{#ifeq:|;|;|;}} }} }}{{ #if: |[[ |{{ #if: |, }}]] |{{ #if: |, }} }}{{ #if: | et al{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.||.}} }} }} }}, ed{{#if:|s}}{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.|{{#if:{{#if:|{{{date}}}| {{#if:|{{{year}}}|}}}}|.}}|.}}{{ #if: {{#if:|{{{date}}}| {{#if:|{{{year}}}|}}}} | ({{#if:|{{{date}}}| {{#if:|{{{year}}}|}}}}){{ #if: | [{{{YearNote}}}] }} }} }} }}{{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }}{{#if:||{{#if:||}}}} |{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} }}{{#if:{{ #if: {{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{ #if: |{{{URL}}} }} }} |[{{ #if: {{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{ #if: |{{{URL}}} }} }} {{ #if: |{{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} |"{{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }}{{ #if: |{{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} | }}[] }}" }}] |{{ #if: |{{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} |"{{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }}{{ #if: |{{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} | }}[] }}" }} }} }}{{ #if: |{{ #ifeq: | | |{{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} |{{#ifeq:{{{seperator}}} |;|;|. }} written at {{{Place}}} }} }} }}{{ #if: |{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} {{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} |{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.|I|i}}n }}{{ #if: |[[ |{{ #if: |, }}]] |{{ #if: |, }}}}{{ #if: |{{ #if: |{{#ifeq:|;|;|;}} |{{#if:| & |{{#ifeq:|;|;|;}} }} }}{{ #if: |[[|{{ #if: |, }}]] |{{ #if: |, }} }}{{ #if: |{{ #if: |; |{{#if:| & |{{#ifeq:|;|;|;}} }} }}{{ #if: |[[|{{ #if: |, }}]] |{{ #if: |, }} }}{{ #if: | et al{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.||.}} }} }} }}{{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} | |{{#ifeq:{{{seperator}}} |;|;|. }} ed{{#if:|s}}{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.||.}} }} }} }}{{ #if: |{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} }}{{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} |{{#ifeq:{{{seperator}}} |;|;|. }} }}{{ #if: |{{#if:{{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} |{{ #if: {{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{ #if: |{{{URL}}} }} }} |{{ #if: |{{{URL}}} }} }} |[{{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} |{{ #if: {{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{ #if: |{{{URL}}} }} }} |{{ #if: |{{{URL}}} }} }} "{{ #if: |{{ #if: | }}[] }}"] |"{{ #if: |{{ #if: | }}[] }}" }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} {{{TitleNote}}} }} }} }}{{ #if: | (in ) }}{{ #if: | () }}{{ #if: |{{ #if:{{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} |{{#ifeq:{{{seperator}}} |;|;|. }} }}{{{Periodical}}}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} }}{{ #if: |{{ #if: | (: ) | () }} |{{ #if: | () }} }}{{ #if: | {{#if:|{{{Volume}}}|{{{Volume}}}}}{{ #if: | ({{{Issue}}}) }} |{{ #if: | ({{{Issue}}}) }} }}{{ #if: {{#if: |{{#if:||p. }}{{{page}}} |{{#if: |{{#if:||pp. }}{{{pages}}} |}} }} |: {{#if: |{{#if:||p. }}{{{page}}} |{{#if: |{{#if:||pp. }}{{{pages}}} |}} }} }} |{{ #if: |{{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} |{{#ifeq:{{{seperator}}} |;|;|. }} }} {{#if:{{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} |{{ #if: {{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{ #if: |{{{URL}}} }} }} |{{ #if: |{{{URL}}} }} }} |[{{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} |{{ #if: {{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{ #if: |{{{URL}}} }} }} |{{ #if: |{{{URL}}} }} }} {{ #if:| [{{{TransItalic}}}] }}] |{{ #if:| [{{{TransItalic}}}] }} }} }}{{ #if: | () }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} {{{Volume}}} }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} }}{{ #if: | ({{{Edition}}} ed.) }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} }}{{ #if: |{{ #if: |: |{{#ifeq:{{{seperator}}} |;|;|. }} }} }} }}{{ #if: | |{{ #if: {{#if:|{{{date}}}| {{#if:|{{{year}}}|}}}} |{{#ifeq:{{{seperator}}} |;|;|. }} {{#if:|{{{date}}}| {{#if:|{{{year}}}|}}}}{{ #if: | [{{{YearNote}}}] }} }} }}{{ #if: |{{ #ifeq: | {{#if:|{{{date}}}| {{#if:|{{{year}}}|}}}} | |{{ #if: |{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} {{{PublicationDate}}} | (published {{{PublicationDate}}}) }} |{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} {{{PublicationDate}}} | (published {{{PublicationDate}}}) }} }} }} }}{{ #if: | |{{ #if: {{#if: |{{#if:||p. }}{{{page}}} |{{#if: |{{#if:||pp. }}{{{pages}}} |}} }} |{{#ifeq:{{{seperator}}} |;|;|. }} {{#if: |{{#if:||p. }}{{{page}}} |{{#if: |{{#if:||pp. }}{{{pages}}} |}} }} }} }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{
    1. if:
    |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} Template:Citation/identifier }}{{ #if: |{{#ifeq:{{{seperator}}} |;|;|. }} }}{{
    1. if:
    |{{#ifeq:{{{seperator}}} |;|;|. }} {{{Archive}}} |{{ #if: | {{#ifeq:{{{seperator}}} |;|;|. }} {{#ifeq: | no | {{#if: |{{#if: |[ {{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.|A|a}}rchived] |{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.|A|a}}rchived }} from the original |{{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.|A|a}}rchived }} | {{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|.|A|a}}rchived{{#if:http://www.windowsnetworking.com/nt/registry/rtips40.shtml{{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{#if:| from {{#if:http://www.windowsnetworking.com/nt/registry/rtips40.shtml |the original |the original }}}} }} }}{{#if:| on }}{{ #if:{{#if:||A}}{{#if:http://www.windowsnetworking.com/nt/registry/rtips40.shtml{{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }}||B}}{{#if:||C}} |. Template:Citation error }} }} }}{{ #if: {{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }}{{#ifeq:|no||}} |{{ #if: {{ #if:Quick Edit Registry Key |Quick Edit Registry Key |{{ #if: | |Template:Citation error }} }} |{{#ifeq:{{{seperator}}} |;|;|. }} {{ #if: {{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{{URL}}} }} |{{#ifeq:{{{seperator}}} |;|;|. }} {{ #if: {{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{#if: |{{#ifeq: | no | http://www.windowsnetworking.com/nt/registry/rtips40.shtml | }} |http://www.windowsnetworking.com/nt/registry/rtips40.shtml }} |{{{URL}}} }} }}{{ #if: | {{#ifeq:{{#ifeq:{{{seperator}}} |;|;|. }}|,|, r|. R}}etrieved }} }}{{#if: |{{#ifeq:{{{seperator}}} |;|;|. }} [ Lay summary]{{#if: | – }} }}{{#if: | () }}{{#if: |{{#ifeq:{{{seperator}}} |;|;|. }} "" }}{{#if:||.}}
     {{#if:|}}