The .Net framework is the memory pig, not PowerShell itself.

It's an unfortunate fact, from more than one perspective, that .Net has to be 
loaded per-process.
________________________________________
From: Ben Scott [[email protected]]
Sent: Monday, October 19, 2009 9:53 PM
To: NT System Admin Issues
Subject: Re: Sysadmin mistake of the week

On Mon, Oct 19, 2009 at 8:01 PM, Kurt Buff <[email protected]> wrote:
>>  For the record, the proper command would have been:
>>
>>        DEVCON restart "PCI\VEN_8086&DEV_27CC"
>
> A single backtick as a delimiter?

  Those are single-character double-quotes.  ASCII ordinal 34
(decimal).  The same as would be used for a file name containing
spaces.  They also quote other things.  Like the ampersand.  ;-)

  Characters with special significance to the CMD shell include:

* Space (ASCII 32)
* Chevrons: < >
* Pipe: |
* Ampersand: &
* Percent: %
* Caret: ^
* Parenthesis: ) (
* Double-quote: "

  Space is a word separator.

  Chevrons and the pipe do command input/output redirection.

  Percent expands environment variables and script parameters.

  Parenthesis group commands and/or arguments.

  Ampersand is a command separator; commands execute in series.

  Double ampersand (&&) and double pipe (||) are conditional serial
execution.  (i.e., execute right-hand-side if left-hand-side
succeeds/fails)

  The caret escapes the next character, or end-of-line.

  Double-quotes quote words containing special characters.

  The escape/quote mechanisms don't seem to work consistently.

  Comma (,) and semicolon (;) may or may not be special to the CMD
shell.  They seem to parse differently depending on context.

  CMD is a crock.  I've always thought Microsoft should have just
licensed 4DOS/4NT from Rex Conn/JP Software.  (Yah, yah, PowerShell.
It arrived 15 years late and is a memory pig.)

> I don't think I've run into devcon before - I'm glad you've done my
> experimentation for me, though. Heh.

  Glad to be of help.  ;)

  Seriously, though, DEVCON does seem to work as advertised, provided
you remember how the CMD shell works.  :)

-- Ben

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

~ Finally, powerful endpoint security that ISN'T a resource hog! ~
~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/>  ~

Reply via email to