How to make xp perform a task/script? at shutdown/startup? - Techist - Tech Forum

Go Back   Techist - Tech Forum > Computer Software > Microsoft Windows and Software
Click Here to Login
Closed Thread
 
Thread Tools Display Modes
 
Old 09-18-2005, 05:58 AM   #1 (permalink)
Monster Techie
 
Join Date: Jul 2004
Posts: 1,349
Default How to make xp perform a task/script? at shutdown/startup?

Im fiamilar with some minor stuff like .bat files and running cmd's from them.

what im trying to find out is... a way to exacute a task or command at shutdown or startup in win XP pro...... however, what im specificaly trying to do is.. copy a file over into the system32 directory and overwrite the file currently in use, and have it perform this task every time it shuts down or starts up (preferably durring shutdown)

but the file thats being overwritten is inuse by windows after the current user profile is logged on... So the task/command/scripts/or whatever, would have to run after logoff during shutdown, or befor logon during startup......

Is this possible?

-------------------------------
I know that stuff can be placed in the startup folder, but that doesnt help this situation because the user profile has to already be started for the task to be performed.

and sort of another related question... I know commands can be run from .bat or .cmd........ but when should each be used? I know there must be a difference between them and im just curiouse.
__________________

jolancer is offline  
Old 09-18-2005, 03:25 PM   #2 (permalink)
Techie Beyond Description
 
Osiris's Avatar
 
Join Date: Jan 2005
Location: Kentucky
Posts: 36,817
Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris
Default

http://www.kellys-korner-xp.com/xp_tweaks.htm
__________________

__________________
Osiris is offline  
Old 09-18-2005, 04:27 PM   #3 (permalink)
Monster Techie
 
Join Date: Jul 2004
Posts: 1,349
Default

thats a long *** list... at a glance it apears to only be tweaks for modifing some XP options... not any tweak to help me perform the task at hand.

unless you can narrow it down to a specific link on that page, i dont see a relavant one.
jolancer is offline  
Old 09-18-2005, 07:18 PM   #4 (permalink)
Techie Beyond Description
 
Osiris's Avatar
 
Join Date: Jan 2005
Location: Kentucky
Posts: 36,817
Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris
Default

Well there might be one in there. Just save it to your desktop and edit it to your likings and see what you can come up with.
__________________
Osiris is offline  
Old 09-18-2005, 07:57 PM   #5 (permalink)
Monster Techie
 
Join Date: Jul 2004
Posts: 1,349
Default

Save what to my desktop? that website is filled with mostly just regentry edits.

Im looking for information conserning a way to perform a automated task/command/script or whever you name it.... during win Boot/shutdown.... befor the user profile logs on, or after it logs off.
jolancer is offline  
Old 09-18-2005, 08:22 PM   #6 (permalink)
Techie Beyond Description
 
Osiris's Avatar
 
Join Date: Jan 2005
Location: Kentucky
Posts: 36,817
Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris
Default

There are also scripts in there..
__________________
Osiris is offline  
Old 09-18-2005, 11:43 PM   #7 (permalink)
Monster Techie
 
Join Date: Jul 2004
Posts: 1,349
Default

i dont know what kinda script your specificaly talking about... but as i said befor i know how to make basic scripts to execute commands or edit registry etc.

what i dont know how to do is exacute such a thing befor or after windows inorder to overrite a file or exacutable currently in use by the active user account.

If the script your talking about is relevant, please direct link it for me because im not going to beable to find it in that list.... even if i were a fast reader, dont think i would find it in that list.
jolancer is offline  
Old 09-19-2005, 12:55 AM   #8 (permalink)
It's all just 1s and 0s
 
office politics's Avatar
 
Join Date: Jan 2004
Location: in the lab
Posts: 6,555
Send a message via MSN to office politics
Default

open gpedit.msc, expand windows settings, expand scripts, open either startup or shutdown scripts, and add script/batch/exe that you wish to execute.
office politics is offline  
Old 09-19-2005, 02:03 AM   #9 (permalink)
Master Techie
 
Join Date: Feb 2004
Posts: 2,172
Send a message via AIM to Win2kpatcher
Default

Quote:
Originally posted by csamuels
open gpedit.msc, expand windows settings, expand scripts, open either startup or shutdown scripts, and add script/batch/exe that you wish to execute.
This is what I also was going to reccomend. This only applies if you have the PRO version of XP though. I have found that HOME does not have the gpedit feature.
Win2kpatcher is offline  
Old 09-19-2005, 06:45 AM   #10 (permalink)
Techie Beyond Description
 
Osiris's Avatar
 
Join Date: Jan 2005
Location: Kentucky
Posts: 36,817
Send a message via ICQ to Osiris Send a message via AIM to Osiris Send a message via MSN to Osiris Send a message via Yahoo to Osiris
Default

I dont think you will be able to run a script that has a file in use, but maybe im wrong.
__________________

__________________
Osiris is offline  
Closed Thread

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off




Copyright 2002- Social Knowledge, LLC All Rights Reserved.

All times are GMT -5. The time now is 06:46 AM.


Powered by vBulletin® Version 3.8.8 Beta 1
Copyright ©2000 - 2017, vBulletin Solutions, Inc.