Re: Run command arguments



"KAREN27" <KAREN27@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:12C3F066-3208-475F-BAEC-3F6BF04C4F5A@xxxxxxxxxxxxxxxx
> Hi all,
>
> I' m using this code below so a particular user can change their screen
> saver settings easily.
>
> <job id="12345-WSH Script">
>
> <script language="JScript">
>
> var WshObj;
> WshObj = WScript.CreateObject("WScript.Shell");
> WshObj.Run("RunDll32.exe desk.cpl, InstallScreenSaver", 1, 1);
> </script>
>
> </job>
>
> All of this works OK, although I'm trying to determine what the argument
"1,
> 1" on the end do.
>
> Also, what other numbers can I apply instead of these numbers, and what
then
> will they do that's different?
>
> Thanks very much for your help
> Karen


Run Method

Description: Creates a new process that executes strCommand.

Syntax: object.Run (strCommand, [intWindowStyle], [bWaitOnReturn])


Download the WSH documentation:
http://msdn.microsoft.com/scripting/


.



Relevant Pages

  • Converting Excel 94 to new format
    ... download for it, but can't find one. ... I already have Excel Reader, ... Craig ... Prev by Date: ...
    (microsoft.public.excel.misc)
  • "Visual Basic Scripting Support" message
    ... What happens after installing the update, ... The only quikfix is to restore a prev. ... So before you try this update, backup your registry!!! ... >Upon trying to download the component I get the message: ...
    (microsoft.public.security)
  • RE: Word for windows dropped off my pc suddenly, how do I get it back?
    ... I dont want to have to pay for a new download when I ... > already have it but just seemed to have lost it entirely in my computer? ... Prev by Date: ...
    (microsoft.public.word.docmanagement)
  • Re: ActiveSync 4 stability
    ... I went to the Microsoft web site to check if there'd been a ... but I can't see Activesync 4 for download at all. ... Prev by Date: ...
    (microsoft.public.pocketpc)
  • Re: question about tables
    ... excellent "At Your Survey" database. ... Download it from ... Prev by Date: ...
    (microsoft.public.access.gettingstarted)