Because of the fact that I have StyleXP installed,,when I need to do an Offline defrag with PerfectDisk,,to keep from having an IO conflict,, I have to go and do this::
Run Regedit
Go to HKEY_LOCAL_MACHINESystemCurrentControlSetServicesStyleXPHelperStart
Change value from 1 to 3 (1 indicates that it starts at System. 3 indicates that it is started Manually)
Perform a boot time defragmentation pass with PerfectDisk
Change value back from 3 to 1
My question is. Does anyone know how to build a batch file that I could keep on my Desktop to do this for me?
![]() |
Patch reliability is unclear. Unless you have an immediate, pressing need to install a specific patch, don't do it. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
Batch File or (WinXp Pro)
Home » Forums » AskWoody support » Windows » Windows Vista, XP and earlier » Questions: Vista, XP back to 3.1 » Batch File or (WinXp Pro)
- This topic has 7 replies, 3 voices, and was last updated 21 years, 3 months ago by
cowboydawg.
AuthorTopiccowboydawg
GuestFebruary 6, 2004 at 8:42 am #1771431Viewing 1 reply threadAuthorReplies-
WSjkipk
AskWoody LoungerFebruary 6, 2004 at 9:59 am #1808212You could export that little section of the registry to text files; 1.reg and 3.reg, save those to the desktop, and then right click on them and Merge. Navigate to the reg folder in your post, set the value to 1, and with the folder highlighted, choose File>Export, and export to the desktop. Repeat for 3. Don’t know if you have to reboot after, but this will change the values without having to travel deep down into the Registry!!!
kip
-
WSJohnGray
AskWoody LoungerFebruary 6, 2004 at 1:31 pm #1808214Did I hear the magic words “BATch file”??!!
If you can give me the command line which will set up the Perfect Disk “boot time” defrag, I’ll knock something up for you…
First, I would need to know whether “Start” is a key or a value name? By that I mean, when you look in REGEDIT, does it say in the Right-Hand Pane “Start” in the “Name” column and “1” in the “Data” column. (See the Attachment — and check the bottom line of the attachment carefully to ensure I have the name of the key correct!!)
You’ll need REG.EXE (in your XP system files) and PsShutdown from SysInternals (or SHUTDOWN.EXE from a Resource Kit.
The only obvious difficulty is the changing of the value back to 1 after the reboot, after the PerfectDisk defrag has taken place…
John
(heavily edited since original post…)
-
cowboydawg
Guest -
WSJohnGray
AskWoody Lounger -
WSJohnGray
AskWoody LoungerFebruary 7, 2004 at 7:08 pm #1808220Cowboy
I have had two further thoughts:
1) unless there is a way of invoking the “Boot Time Defrag” from the command line (and thus a BATch file) there is little point doing anything more clever than what you have already as you BATch file. (Mine would be cleverer!!)
2) does the “boot time defrag” action finish completely BEFORE the entries in HKLM…Run are invoked? If that’s the case, we could put a BATch file in there to return that START setting to automatic, after the B-T-D has taken place — this would be a neat solution IF it works the way I think it should!
John
-
cowboydawg
GuestFebruary 7, 2004 at 10:36 pm #1808221[indent]
does the “boot time defrag” action finish completely BEFORE the entries in HKLM…Run are invoked? If that’s the case, we could put a BATch file in there to return that START setting to automatic, after the B-T-D has taken place — this would be a neat solution IF it works the way I think it should
[/indent]
Well all I know is I run the batch file and choose #2 which is Manual,,then start the Offline Defrag,,after it’s finished and boots back to the Desktop run the Batch File again and choose #1 which is Automatic. Not sure how ya could get the Batch File to do all that for you,,although that would be cool.
Also found a little program called “Uxtheme Multi-Patcher 1.5.exe that allows you to run most 3rd party themes from Windows Display Properties. He He He,,
-
-
-
-
cowboydawg
GuestFebruary 6, 2004 at 7:33 pm #1808217Howdy,,well someone made me a Batch File that gives me the option to change it to 3 before I defrag and back to 1 when I’m done. Here is a sceen shot of it. Now if ya can improve on it..be my guest. I’m always open for suggestions. I also had to make to .reg files called stylexp.reg and stylexp2.reg.
Viewing 1 reply thread - This topic has 7 replies, 3 voices, and was last updated 21 years, 3 months ago by
-

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
CISA warns of hackers targeting critical oil infrastructure
by
Nibbled To Death By Ducks
7 hours, 26 minutes ago -
AI slop
by
Susan Bradley
6 hours, 36 minutes ago -
Chrome : Using AI with Enhanced Protection mode
by
Alex5723
8 hours, 42 minutes ago -
Two blank icons
by
CR2
15 hours, 12 minutes ago -
Documents, Pictures, Desktop on OneDrive in Windows 11
by
ThePhoenix
17 hours, 36 minutes ago -
End of 10
by
Alex5723
20 hours, 17 minutes ago -
End Of 10 : Move to Linux
by
Alex5723
20 hours, 46 minutes ago -
Single account cannot access printer’s automatic duplex functionality
by
Bruce
17 hours, 15 minutes ago -
test post
by
gtd12345
1 day, 2 hours ago -
Privacy and the Real ID
by
Susan Bradley
16 hours, 25 minutes ago -
MS-DEFCON 2: Deferring that upgrade
by
Susan Bradley
8 hours, 31 minutes ago -
Cant log on to oldergeeks.Com
by
WSJonharnew
1 day, 6 hours ago -
Upgrading from Win 10
by
WSjcgc50
8 hours, 1 minute ago -
USB webcam / microphone missing after KB5050009 update
by
WSlloydkuhnle
13 minutes ago -
TeleMessage, a modified Signal clone used by US government has been hacked
by
Alex5723
1 day, 22 hours ago -
The story of Windows Longhorn
by
Cybertooth
1 day, 10 hours ago -
Red x next to folder on OneDrive iPadOS
by
dmt_3904
2 days ago -
Are manuals extinct?
by
Susan Bradley
11 hours, 45 minutes ago -
Canonical ditching Sudo for Rust Sudo -rs starting with Ubuntu
by
Alex5723
2 days, 9 hours ago -
Network Issue
by
Casey H
1 day, 20 hours ago -
Fedora Linux is now an official WSL distro
by
Alex5723
2 days, 21 hours ago -
May 2025 Office non-Security updates
by
PKCano
2 days, 21 hours ago -
Windows 10 filehistory including onedrive folder
by
Steve Bondy
2 days, 23 hours ago -
pages print on restart (Win 11 23H2)
by
cyraxote
2 days ago -
Windows 11 Insider Preview build 26200.5581 released to DEV
by
joep517
3 days, 1 hour ago -
Windows 11 Insider Preview build 26120.3950 (24H2) released to BETA
by
joep517
3 days, 1 hour ago -
Proton to drop prices after ruling against “Apple tax”
by
Cybertooth
3 days, 9 hours ago -
24H2 Installer – don’t see Option for non destructive install
by
JP
1 hour, 14 minutes ago -
Asking Again here (New User and Fast change only backups)
by
thymej
3 days, 20 hours ago -
How much I spent on the Mac mini
by
Will Fastie
1 day, 4 hours ago
Recent blog posts
Key Links
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.