Login | |
|
 |
RE: MSH Code - 1/25/2006 3:24:13 AM
|
|
 |
|
| |
ebgreen
Posts: 4613
Score: 31
Joined: 7/12/2005
Status: offline
|
What does the "ls" part in the beginning mean? ls is an alias for get-children. dir is an alias for the same command. So ls basically means list the contents of (ls is the name of the unix equivalent of the dos dir command) why dont you need "" when there are spaces in the string? Well there really aren't any spaces in the string that is being passed to the ls command. HKLM:\SOFTWARE\Classes\Directory\shell\MSH\command is the path to list. -ea is the name of a parameter to pass to the ls comman. It is the ErrorAction parameter and the value that is passed into this parameter is silentlycontinue. So, it does not need "" for the same reason that Dir /s c:\Temp would not need "" in a DOS command. What does ! mean? ! is the logical negation symbol or 'not'.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: MSH Code - 2/1/2006 6:06:42 AM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
it seems very javascript'ish to me, language wise
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
 |
RE: MSH Code - 2/2/2006 2:31:41 AM
|
|
 |
|
| |
kirrilian
Posts: 628
Score: 3
Joined: 3/15/2005
From:
Status: offline
|
i've downloaded it and am gonna play with it a bit
_____________________________
Have you searched here ? VBScript Fundamentals My Site
|
|
| |
|
|
|
|
|