Start a .scr in a .bat
iBenny
Posted messages
103
Status
Membre
-
iBenny Posted messages 103 Status Membre -
iBenny Posted messages 103 Status Membre -
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:
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
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 réponses
yg_be
Posted messages
23437
Registration date
Status
Contributeur
Last intervention
Ambassadeur
1 587
hello,
maybe:
vbs suggestion:
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")
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?
---------------------------
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?
Could it be that your explorer is misconfigured?
https://forums.commentcamarche.net/forum/affich-2529461-comment-afficher-les-extension-de-fichier#3
https://forums.commentcamarche.net/forum/affich-2529461-comment-afficher-les-extension-de-fichier#3