• Batch File or (WinXp Pro)

    Author
    Topic
    #1771431

    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?

    Viewing 1 reply thread
    Author
    Replies
    • #1808212

      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

    • #1808214

      Did I hear the magic words “BATch file”??!! fanfare cool

      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…)

      • #1808218

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

        • #1808219

          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…!

        • #1808220

          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

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

      • #1808217

        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.

    Viewing 1 reply thread
    Reply To: Batch File or (WinXp Pro)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: