Re: Script DOS Command?

Tech-Archive recommends: Fix windows errors by optimizing your registry



Thank you for the reply, but the link makes very little sense to me. I know very little about VBS script, the only ones I've been able to get to work in the past have been ones where I've found examples in the net which I can easily modify.

Can you give me an example of how this script should look?

Thanks in advance, Andrew.

"Joe Fawcett" <joefawcett@xxxxxxxxxxxxxxxx> wrote in message news:824A5D4C-AEEC-4150-92F8-AAFC1C2F980E@xxxxxxxxxxxxxxxx


"Andrew Staley" <noreply@nothankyou> wrote in message news:FFCB14B6-2A19-4EDF-B8E3-DB25D47A8AD2@xxxxxxxxxxxxxxxx
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 execute from a GPO.

Thanks in advance, Andrew.
Look at the WSH documentation for the Shell.Run method. http://msdn.microsoft.com/en-us/library/d5fk67ky(VS.85).aspx

--

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

.



Relevant Pages

  • Re: DELETE Trigger
    ... > Pro SQL Server 2000 Database Design ... >> the .vbs script. ... >> changed data to another table from where you extract the data using a ... >> procedure to execute the script. ...
    (microsoft.public.sqlserver.programming)
  • Re: VBS from ASP page
    ... I'm trying to execute a vbs script from an asp page as follows: ... Set WSHShell = CreateObject ... But if I execute the vbs file alone, ...
    (microsoft.public.windows.server.scripting)
  • Re: VBS from ASP
    ... I'm trying to execute a vbs script from an asp page as follows: ... Cannot Access Remote Files with the FileSystemObject ... I've got no error message but it doesn't work, ... But if I execute the vbs file alone, ...
    (microsoft.public.scripting.wsh)
  • pb with security
    ... When users log on Windows 2003 SP1 Terminal server, i want them execute this ...
    (microsoft.public.scripting.vbscript)
  • Re: DELETE Trigger
    ... the .vbs script. ... changed data to another table from where you extract the data using a stored ... procedure to execute the script. ... You could schedule this stored procedure to ...
    (microsoft.public.sqlserver.programming)