View Single Post
Old 05-24-2008   #5 (permalink)
Joe Fawcett


 
 

Re: Script DOS Command?



"Todd Vargo" <tlvargo@xxxxxx> wrote in message
news:ORd$KKMvIHA.1328@xxxxxx
Quote:

> Andrew Staley wrote:
Quote:

>> I need to create a VBS script that runs this;
>>
>> regsvr32 "c:\program files\my prog\mydll.dll" /s
>>
>> Can anyone point me in the right direction, I've only ever been able to
>> do
>> simple scripts before that point to BAT files to do what I need, in this
>> case though it wouldn't work so I actually need it in a VBS script that
> will
Quote:

>> execute from a GPO.
>
> Set WshShell = WScript.CreateObject("WScript.Shell")
> cmd = "regsvr32 ""c:\program files\my prog\mydll.dll"" /s"
> WshShell.Run cmd, 1, true
>
> --
> Todd Vargo
> (Post questions to group only. Remove "z" to email personal messages)
>
What he said


--

Joe Fawcett (MVP - XML)
http://joe.fawcett.name

My System SpecsSystem Spec