Need reference to write batch files

  • Thread starter Thread starter Alan
  • Start date Start date
A

Alan

I'd like to create a desktop icon that runs a batch file
for:

1) turning on a password protected screen saver
2) turning off a screen saver
(obviously after logging back into the PC).

Where can one find a list of available windows prompt line
commands and their command line syntax to program simple
batch files?

Thanks.

Alan
 
You can start by typing HELP at teh command prompt. Then
you can type each command in turn followed by /? for more
info. The desktop Help (F1 key) also has a lot of info at
the Index entries for MSDOS and Command.

Activating and deactivating the screen saver is not easily
done via a batch file. There may be a Rundll32.exe hack
that can do it, but I've never turned the screen saver on,
so I've never needed to turn it off.

Tom Lavedas
===========
 
Alan said:
I'd like to create a desktop icon that runs a batch file
for:

1) turning on a password protected screen saver

rundll32.exe user32.dll,LockWorkStation
or see tip 302 from Jerold Schulamn at www.jsiinc.com
2) turning off a screen saver
(obviously after logging back into the PC).
??? Thats the job of the screensaver.

Where can one find a list of available windows prompt line
commands and their command line syntax to program simple
batch files?
See my signature or one of these:
http://www.ss64.com/nt/index.html
http://www.commandline.co.uk/lib/treeview/index.php
http://www.uwasa.fi/~ts/http/http2.html#cmdscript
http://home.comcast.net/~stewartb/cmdprompt.html#6
http://www.seanet.com/~shardy/ntscript.html

HTH
 
I'd like to create a desktop icon that runs a batch file
for:

1) turning on a password protected screen saver
2) turning off a screen saver
(obviously after logging back into the PC).

Where can one find a list of available windows prompt line
commands and their command line syntax to program simple
batch files?

For triggering a system's current screen saver before its preset delay
has elapsed, I cheat and use a small multipurpose utility program
available from <http://grc.com/wizmo/wizmo.htm>
Another such option is
<http://www.jsiinc.com/suba/tip0300/rh0302.htm>

For disabling or enabling a screen saver, I guess you'd have to
manipulate the registry directly, somewhere in
HKEY_CURRENT_USER\Control Panel\Desktop
or
HKEY_CURRENT_USER\Control Panel\ScreenSaver.*
 
Back
Top