Trying to make .BAT to start screensaver and lock screen Win 7 pro 64

voiceartistusa

New member
Local time
10:10 AM
Messages
18
I am trying to make a shortcut to lock my screen and invoke the screensaver with one batch file.

I came up with this:

@echo off
rem ScreenSaver
cd %windir%\
start WLXPGSS.SCR
rem LOCK
cd %windir%\system32
start rundll32.exe user32.dll,LockWorkStation
exit


With this batch file, the screen locks (need to put in my password) but the screen saver doesn't start.
Upon entering my password, I see the settings for that particular screensaver were called for not the actual screensaver.

However, when I run C:\Windows\WLXPGSS.SCR the screensaver plays but doesn't "Show welcome screen" and password prompt as selected in the screen saver properties.

I want to click one batch file to lock the screen and play that screensaver only.

That screensaver, by the way, seems it's only part of "Windows Live Setup" which needs to be downloaded from here ...possibly not on all Windows 7 computers.
File Name: wlsetup-web.exe

Here is what is included with Windows Live Setup...you can choose only what you want at install time.

Anyone have any ideas?

Thanks

:confused:
 
Last edited:

My Computer My Computer

At a glance

Windows 7 Professional 64bitIntel Core i7 2820QM 2.3GHz8GB ( 1666 MHz )ATI Fire Pro M8900
Computer type
Laptop
Computer Manufacturer/Model Number
Dell Precision M6600
OS
Windows 7 Professional 64bit
CPU
Intel Core i7 2820QM 2.3GHz
Memory
8GB ( 1666 MHz )
Graphics Card(s)
ATI Fire Pro M8900
Sound Card
MOTU UltraLite mk3 Hybrid ( external )
Screen Resolution
1200
Hard Drives
250GB 7200 rpm
Keyboard
It lights up
Mouse
Logitech laser
Internet Speed
Blazing
Antivirus
COMODO Internet Security (There is NO OTHER)
Browser
Firefox (There is NO OTHER)...well Opera is cool
I'm guessing it is running the screensaver then locking the PC losing the screensaver.

If you switch the order does the screensaver part still run?
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64
OS
Windows 7 Ultimate x64
By switching the order like this

@echo off
rem LOCK
cd %windir%\system32
start rundll32.exe user32.dll,LockWorkStation
rem ScreenSaver
cd %windir%\
start WLXPGSS.SCR
exit


Same thing, I see the welcome screen, then I type in my password and I see the settings for that screensaver.

I even tried this...same results.

@echo off
rem LOCK
cd %windir%\system32
start rundll32.exe user32.dll,LockWorkStation
rem ScreenSaver
cd %windir%\WLXPGSS.SCR
start WLXPGSS.SCR
exit

:confused:
 

My Computer My Computer

At a glance

Windows 7 Professional 64bitIntel Core i7 2820QM 2.3GHz8GB ( 1666 MHz )ATI Fire Pro M8900
Computer type
Laptop
Computer Manufacturer/Model Number
Dell Precision M6600
OS
Windows 7 Professional 64bit
CPU
Intel Core i7 2820QM 2.3GHz
Memory
8GB ( 1666 MHz )
Graphics Card(s)
ATI Fire Pro M8900
Sound Card
MOTU UltraLite mk3 Hybrid ( external )
Screen Resolution
1200
Hard Drives
250GB 7200 rpm
Keyboard
It lights up
Mouse
Logitech laser
Internet Speed
Blazing
Antivirus
COMODO Internet Security (There is NO OTHER)
Browser
Firefox (There is NO OTHER)...well Opera is cool
Many years ago we I used Windows XP at work if you left you computer for a while you had to log off. When you came back you had to login again and wait for everything to establish itself this is a bit time consuming.

I made an app in VB that you could run and the screen would be locked so no one could use my computer. You type in a password and it unlocks, it also have one of the Windows screensavers that activated after a while. When we changed over to Windows 7 it still worked.
 

My Computer My Computer

At a glance

Windows 7 Professional 32bit SP1, Windows 10 ...Intel Pentium B970 @ 2.30GHz, DELL DELL Intel...8GBNVIDIA GeForce MX230 (Dell)
Computer type
Laptop
Computer Manufacturer/Model Number
Samsung won't charge Now Dell Inspiron 17 3793
OS
Windows 7 Professional 32bit SP1, Windows 10 Home 64-bit at the moment
CPU
Intel Pentium B970 @ 2.30GHz, DELL DELL Intel 3793 Core i5 1
Motherboard
DELL 0C9WH2
Memory
8GB
Graphics Card(s)
NVIDIA GeForce MX230 (Dell)
Sound Card
Realtek High Definition Audio
Monitor(s) Displays
17.3" HD+ LED Display
Screen Resolution
1920x1040
Hard Drives
99GB (RAID SHIT SSD), Seagate 1TB SATA III DATA

Seagate ST1000LM048-2E7172 (SATA III)
Mouse
USB remote
Antivirus
Avast Free Antivirus 20.10.2442
Browser
Internet Explorer 11, FireFox
Other Info
DELL shit Its the worst laptop design ever made the laptop battery is inbuilt who the hell makes a laptop battery inbuilt DELL shit does, can't wait until the 1TB HDD is replaced and RAID shit is removed
Try this

Try:
start WLXPGSS.SCR /start
 

My Computer My Computer

At a glance

Win 7 Enterprise x64
Computer type
Laptop
Computer Manufacturer/Model Number
Dell
OS
Win 7 Enterprise x64
Back
Top