"C:\Program Files\Microsoft Office\Office15\Excel.exe"
rundll32.exe user32.dll, LockWorkStation

The batch file I told you how to create works without issues. It launches a program and after the program is finished goes to lock screen. The batch works perfectly.Unfortunatly that won't do for me
Sorry but yes.Sorry but no.
Of course it does not work with screensavers! It works with programs and applications. A screensaver (.scr file) is not a normal application per se; the lock screen command in batch file is as "exit" command for a screensaver so it shuts down and proceeds to lock screen.Try it with any screensaver (making a shortcut if it) and tell me what happens.

David, I repped you for this. That /s switch does the trick and the batch works also with screensavers.
(You might want to edit your post, to remove that Excel line...)
Kari
Thanks for joining David, i better directly tell you the screen saver i'm talking about :
It's called Album Art Sreensaver, find it easily with google. Your bat indeed work... But not with this one!

Excel has nothing to do with OP's issue, he has not even mentioned it. I just used Excel as example program in my batch file ). User is only interested in running a specific non-compatible screensaver.Why do you suggest I remove the Excel line?
This PC has Win7 32 Bit / Office 2010 and that is where Excel.exe is located.
Thanks,
David
David, do you think I would make such thread if that screensaver could be used normally..? Just read dive and you'll know why.
Excel has nothing to do with OP's issue, he has not even mentioned it. I just used Excel as example program in my batch file ). User is only interested in running a specific non-compatible screensaver.Why do you suggest I remove the Excel line?
This PC has Win7 32 Bit / Office 2010 and that is where Excel.exe is located.
Thanks,
David
That's why.
