Start a .scr in a .bat

iBenny Posted messages 103 Status Member -  
iBenny Posted messages 103 Status Member -
Hello,

On Windows 10, the Bubbles screensaver behaves differently when it runs automatically compared to when it is triggered by clicking on it in the System32 directory. I want the click version, but... how do I do that?

I downloaded a program that triggers programs after a configurable system inactivity time, but this program only accepts exe, bat, and vbs. So I need to trigger the screensaver in a bat file.

I tried:
run bubbles.scr
start bubbles.scr
start .\bubbles.scr

and all I get is the message:

"This screensaver has no adjustable options."

Do you have a suggestion for a better batch file, please?

Thank you very much
iBenny

3 answers

  1. yg_be Posted messages 23437 Registration date   Status Contributor Last intervention   Ambassador 1 588
     
    hello,
    maybe:
    start C:\Windows\System32\bubbles.scr

    vbs suggestion:
    Set WshShell = WScript.CreateObject("WScript.Shell") 'Run the Screen Saver WshShell.Run ("C:\Windows\System32\bubbles.scr") 
    0
  2. iBenny Posted messages 103 Status Member 2
     
    Your batch is not working but... your vbs is! However, it works when you click on it, but it does not work when the program tries to trigger it!? An error message is produced:
    ---------------------------
    Windows Script Host
    ---------------------------
    Script: C:\Windows\System32\Bubbles.vbs
    Line: 11
    Char: 1
    Error: The specified file is not found.
    Code: 80070002
    Source: (null)

    ---------------------------
    OK
    ---------------------------

    The program in question is "Watch 4 Idle" which can be found here: http://leelusoft.altervista.org/watch-4-idle.html

    I manually created the said vbs by copying your code into a txt file and renaming it to .vbs. Doing this, the W4I program doesn't see it!? I had to choose to add a vbs program and, in the file window, in the system32 directory, and from the list of available vbs, right-click on a vbs file and choose to edit it: replace its content with your code while maintaining the header of all vbs files, and save this last file with the name Bulles.vbs. By doing this, this file appears in the vbs file selection window. I choose it and run the program and the above error message appears!?

    What do you think about this?

    Thank you for testing
    iBenny

    PS: manually creating a vbs via a txt makes it appear in Explorer, but modifying an existing vbs and renaming it does not make it appear in Explorer. What is the difference between these two vbs?
    0
    1. iBenny Posted messages 103 Status Member 2
       
      Negative! This option (hide known extensions) is unchecked as well as the following one...

      Thank you
      iBenny
      0
    2. yg_be Posted messages 23437 Registration date   Status Contributor Last intervention   1 588
       
      What does the VBS contain?
      0
    3. iBenny Posted messages 103 Status Member 2
       
      The three lines suggested above after the usual header are:

      '
      ' Copyright (c) Microsoft Corporation. All rights reserved.
      '
      ' VBScript Source File
      '
      ' Script Name: Bubbles.vbs
      '

      Set WshShell = WScript.CreateObject("WScript.Shell")
      'Run the Screen Saver
      WshShell.Run ("C:\Windows\System32\bubbles.scr")
      0
  3. iBenny Posted messages 103 Status Member 2
     
    No other experts on the line?
    0