How can I do simple programming for WindowsXP prof.?

  • Thread starter Thread starter Frank Martin
  • Start date Start date
F

Frank Martin

I need tasks done such as:

1/ Turn the computer on'off at selected times each day.
2/ Empty certain folders before turning off the computer.

Is there a facility to allow this?
Please help, Frank
 
Learn to Script
http://www.microsoft.com/technet/scriptcenter/learnit.mspx

Hey, Scripting Guy!
http://www.microsoft.com/technet/scriptcenter/resources/qanda/default.mspx

--
Carey Frisch
Microsoft MVP
Windows XP - Shell/User
Microsoft Newsgroups

Get Windows XP Service Pack 2 with Advanced Security Technologies:
http://www.microsoft.com/athome/security/protect/windowsxp/choose.mspx

-------------------------------------------------------------------------------------------

"Frank Martin" wrote:

| I need tasks done such as:
|
| 1/ Turn the computer on'off at selected times each day.
| 2/ Empty certain folders before turning off the computer.
|
| Is there a facility to allow this?
| Please help, Frank
 
Thanks. But how do I get the script/code into the computer; do I use the
"msconfig" in the 'run' button?
 
Frank Martin said:
Thanks. But how do I get the script/code into the computer; do I use the
"msconfig" in the 'run' button?

no. if you want the script to run at every startup, put it (or even
better a shortcut to it) into the StartUp folder (on the start menu; there
is a seperate startup folder for each user account, plus the one in the
All Users account, which natuarally effects all users; choose
appropriately); look in .../Documents and Settings/USERNAME/Start
Menu/Programs/Startup/...

for shutdown, XP PRO (not home) can run a shutdown script; use Group
Policy to set it up (search in help and support for info on "shutdown
script").

for periodic scripts, use Task Scheduler to specify when the script
should run.

BTW, Batch files (.bat extension) are still viable in XP, tho they are not
as powerful as scripts (.wsf/.csh/.vbs/.jss). But they are easier to
learn. they are especially practical for doing simple things like starting
a series of programs running at once (via the START command). If you have
XP Pro, search in Help and Support for "command-line reference".
Unfortuanately this section of H&S is not included in XP Home, but this
link has it online:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx
 
no. if you want the script to run at every startup, put it (or even
better a shortcut to it) into the StartUp folder (on the start menu; there
is a seperate startup folder for each user account, plus the one in the
All Users account, which natuarally effects all users; choose
appropriately); look in .../Documents and Settings/USERNAME/Start
Menu/Programs/Startup/...

for shutdown, XP PRO (not home) can run a shutdown script; use Group
Policy to set it up (search in help and support for info on "shutdown
script").

for periodic scripts, use Task Scheduler to specify when the script
should run.

BTW, Batch files (.bat extension) are still viable in XP, tho they are not
as powerful as scripts (.wsf/.csh/.vbs/.jss). But they are easier to
learn. they are especially practical for doing simple things like starting
a series of programs running at once (via the START command). If you have
XP Pro, search in Help and Support for "command-line reference".
Unfortuanately this section of H&S is not included in XP Home, but this
link has it online:

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx

Many thanks; this will get me started.
Regards, Frank
 

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

Back
Top