Need reference to write batch files

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
 
T

Tom Lavedas

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
===========
 
M

Matthias Tacke

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
 
M

Mark R. Blain

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.*
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top