Re: Run mandatory advertisment
- From: "Jeff Gilbert" <jeff.gilbert@xxxxxxxxxxx>
- Date: Fri, 23 Sep 2005 16:14:55 -0400
Try this:
On error resume next
strComputer = "."
Set WshShell = CreateObject("Wscript.Shell")
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
WshShell.Run "YourEXEGoesHere", VBHide
wscript.quit
"Sven" <Sven@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:77E6B9A0-B2CB-42EB-9ED1-F6A6D033EBD8@xxxxxxxxxxxxxxxx
> Sorry I want to execute the advertisement outside of SMS.
> The problem is that i want to call the advertisement when a cd is
> inserted.
>
> "Jeff Gilbert" wrote:
>
>> Just tell SMS to run the program hidden.
>>
>> or in the vbscript add ", VBHide" after the execute command.
>>
>> "Sven" <Sven@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:45918928-3245-4246-A165-E5330A9ABA19@xxxxxxxxxxxxxxxx
>> > Hello,
>> >
>> > i want to run a mandatory program which is not visible for the user
>> > with a
>> > vbscript. Is there a way to do this? I didn't find anything to do this.
>> > The mandatory adv. is assigned to the computer with a future execution
>> > date.
>>
>>
>>
.
- References:
- Re: Run mandatory advertisment
- From: Jeff Gilbert
- Re: Run mandatory advertisment
- Prev by Date: Re: Run mandatory advertisment
- Next by Date: Re: Installshield Silent EXE and SMS
- Previous by thread: Re: Run mandatory advertisment
- Next by thread: Re: Installshield Silent EXE and SMS
- Index(es):
Relevant Pages
|