Results 1 to 8 of 8
  1. #1
    Banned Member
    Join Date
    Jul 2002
    Location
    Newport Richey, Florida, USA
    Posts
    2,149
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Batch File or (WinXp Pro)

    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_MACHINESystemCurrentControlSetServicesS tyleXPHelperStart
    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?

  2. #2
    3 Star Lounger
    Join Date
    Jan 2001
    Location
    Seattle, Washington
    Posts
    320
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Batch File or (WinXp Pro)

    You 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

  3. #3
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Batch File or (WinXp Pro)

    Did I hear the magic words "BATch file"??!! <img src=/S/fanfare.gif border=0 alt=fanfare width=31 height=23> <img src=/S/cool.gif border=0 alt=cool width=15 height=15>

    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...)
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  4. #4
    Banned Member
    Join Date
    Jul 2002
    Location
    Newport Richey, Florida, USA
    Posts
    2,149
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Batch File or (WinXp Pro)

    OH here is a shot of the Registry you asked for.

  5. #5
    Banned Member
    Join Date
    Jul 2002
    Location
    Newport Richey, Florida, USA
    Posts
    2,149
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Batch File or (WinXp Pro)

    Howdy,,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.

  6. #6
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Batch File or (WinXp Pro)

    OK, so it's a REG_DWORD entry not a REG_SZ!

    Unfortunately I left the draft BATch file at home, so I can't work on it until Monday.

    Your BATch file would probably work, as far as I can see...!
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  7. #7
    Platinum Lounger
    Join Date
    Jan 2001
    Location
    Quedgeley, Gloucester, England
    Posts
    5,333
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: Batch File or (WinXp Pro)

    Cowboy

    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
    <font face="Script MT Bold"><font color=blue><big><big>John</big></big></font color=blue></font face=script>

    Ita, esto, quidcumque...

  8. #8
    Banned Member
    Join Date
    Jul 2002
    Location
    Newport Richey, Florida, USA
    Posts
    2,149
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Batch File or (WinXp Pro)

    <hr>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<hr>

    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,,

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •