Re: mofcomp related question
- From: "sherrylkissinger@xxxxxxxxx" <sherrylkissinger@xxxxxxxxx>
- Date: Tue, 6 May 2008 15:33:46 -0700 (PDT)
On May 6, 4:28 am, vidyasagar....@xxxxxxxxx wrote:
Hi all,
Is there any silent mode to registering a .moffile with mofcomp? I
dont want a command line to come up when I execute that command. Any
ideas?
Can you use vbscript? something like the below, where the mini.mof
file is in the same folder as the vbscript.
On Error Resume Next
Set sho = CreateObject("WScript.Shell")
strSystemRoot = sho.expandenvironmentstrings("%SystemRoot%")
strCurrentDir = Left(Wscript.ScriptFullName,
(InstrRev(Wscript.ScriptFullName, "\") -1))
'Parse Command Line
strAddWMIClasses = strSystemRoot & "\System32\wbem\mofcomp " & chr(34)
& strCurrentDir & "\MINI.mof" & chr(34)
sho.run "cmd /c " & strAddWMIClasses,vbHide
.
- Follow-Ups:
- Re: mofcomp related question
- From: Dominic Johnson
- Re: mofcomp related question
- References:
- mofcomp related question
- From: vidyasagar . svn
- mofcomp related question
- Prev by Date: Re: Schema Query - Top Level Classes Only
- Next by Date: Re: Schema Query - Top Level Classes Only
- Previous by thread: mofcomp related question
- Next by thread: Re: mofcomp related question
- Index(es):
Relevant Pages
|