Re: XP batch file scripting / registry question
- From: JaimeZX <JaimeZX@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Wed, 24 May 2006 11:09:02 -0700
SWEET. The "START" did it. Thanks, bro. I am a very happy camper now.
"Doug Knox MS-MVP" wrote:
You should just be able to add an EXIT command at the end. You may also want to look into the START command..
TASKKILL /F /IM EXPLORER.EXE
START EXPLORER.EXE
or
TASKKILL /F /IM EXPLORER.EXE
EXPLORER.EXE
EXIT
--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
"JaimeZX" <JaimeZX@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:23CC4103-B755-4C59-9DE4-D66FF6544F36@xxxxxxxxxxxxxxxx
Awesome. Last question (I think):
So I have the lines
-------------------------------------
TASKKILL /F /IM EXPLORER.EXE
EXPLORER.EXE
-------------------------------------
in the .bat; but the script hangs after explorer restarts. I can move the
kill / restart to the end of the script, but the cmd box that opens when the
script runs won't go away, know what I mean?
Any ideas you might have would of course be appreciated.
Thanks again!
Jim
"Doug Knox MS-MVP" wrote:
Hi Jim,
TASKKILL will kill running processes, but the user who's account the BAT file is running under needs to have the appropriate permissions to kill a process. TASKKILL /? in a command prompt window will give you the required command line options.
--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
"JaimeZX" <JaimeZX@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:6D06425A-7D36-425C-841E-52A751C81711@xxxxxxxxxxxxxxxx
That's what I was thinking but I wasn't sure. Do you know of a command to
kill a certain process from within a .bat? Thanks!
Jim
"Doug Knox MS-MVP" wrote:
You're correct. Some settings are only saved at log off. Manaul changes made to the registry will be overwritten. The only way around this is to kill the EXPLORER.EXE process and restart it, after you've made the registry changes.
--
Doug Knox, MS-MVP Windows Media Center\Windows Powered Smart Display\Security
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Per user Group Policy Restrictions for XP Home and XP Pro
http://www.dougknox.com/xp/utils/xp_securityconsole.htm
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
"JaimeZX" <JaimeZX@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:CD628697-CD38-4683-8623-42CBB8D6E43B@xxxxxxxxxxxxxxxx
Hopefully this is an easy question. All machines are running XP Pro SP2
I have a script that everyone in the office runs daily; it makes sure all
network drives are mapped correctly and updates any registry settings via the
regedit /s command.
My issue is this, though - some registry changes in HKCU don't take effect
right away, like desktop settings. (We have only one authorized desktop image
that people like to change.) So then when someone logs out and Windows does
the "Saving Your Settings" thing, I think it over-writes the changes the
regedit /s made.
Is there something I can put in the script to implement all changes to HKCU
immediately? Thanks very much in advance.
Warm regards,
Jim
- Follow-Ups:
- Re: XP batch file scripting / registry question
- From: Doug Knox MS-MVP
- Re: XP batch file scripting / registry question
- References:
- Re: XP batch file scripting / registry question
- From: Doug Knox MS-MVP
- Re: XP batch file scripting / registry question
- From: Doug Knox MS-MVP
- Re: XP batch file scripting / registry question
- From: JaimeZX
- Re: XP batch file scripting / registry question
- From: Doug Knox MS-MVP
- Re: XP batch file scripting / registry question
- Prev by Date: Re: XP batch file scripting / registry question
- Next by Date: Re: XP batch file scripting / registry question
- Previous by thread: Re: XP batch file scripting / registry question
- Next by thread: Re: XP batch file scripting / registry question
- Index(es):
Relevant Pages
|