Jump to content
CCleaner Community Forums
Alan_B

Winapp2.ini on skates - making it 40 times faster.

Recommended Posts

I do my best to sort the file alphabetically (manually). I might try a simply python script to read the ini and write a new one back out with the headers sorted.

Share this post


Link to post
Share on other sites

I counter your request with an alternative.

There is a guy with so much spare time he is constantly changing hats - lets ask him to sort the file before it gets posted :D

 

A quick possibility for you is to change one line of code, at line 50.

Original :-

IF %TRIM_NAME%==#_FIX.INI CALL :Sort_INI #_H1.TXT #_H2.TXT

Suggested (and untested) :-

IF %TRIM_NAME%==#_FIX.INI ( CALL :Sort_INI #_H1.TXT #_H2.TXT & EXIT /B )

This change should cause the script to terminate immediately after sorting and replacing the original file.

 

Please let me know if this is good for you.

Right now a am quite busy beating a new Windows installation into submission :lol:

 

No worries Alan...put it on your backburner. I just made the changes and ran tests. Whether you overwrite or skip, the script terminates at that point.

Share this post


Link to post
Share on other sites

I do my best to sort the file alphabetically (manually). I might try a simply python script to read the ini and write a new one back out with the headers sorted.

Why not use Trim_12 which identifies Volatiles and will sort the full *.ini file before it cuts out any entries.

Whilst the initial aim was to create a reduced *.ini, it now allows sorting first, and you can choose to finish with the Full size sorted, not the reduced sorted.

 

Regards

Alan

Share this post


Link to post
Share on other sites

one question about trim_12, on my old pc (xp) when i choose at the end to delete #TRIMMER - it deletes it, now on new system (Windows 8) it wont - what could be wrong?

Share this post


Link to post
Share on other sites

I do not permit UAC to live on my Windows 7.

I only briefly activated it to identify and debug issues that UAC was causing other who used my script.

 

Windows 8 is a whole new can of worms which I hope never to bite into :rolleyes:

I suspect that Windows 8 does not readily tolerate a batch script deleting files and folders.

 

I really hope that WinApp2.ini can sort your problem on his Win 8 machine.

Share this post


Link to post
Share on other sites

I do have a win8 box, but the battery is dead. I'll plug it in and let you know my results.

Share this post


Link to post
Share on other sites

Why not use Trim_12 which identifies Volatiles and will sort the full *.ini file before it cuts out any entries.

Whilst the initial aim was to create a reduced *.ini, it now allows sorting first, and you can choose to finish with the Full size sorted, not the reduced sorted.

 

Regards

Alan

Hi Alan_B

 

I have been trying to understand Trim.bat and am confused by the existence of embedded instructions in the file, your Trim_help.txt, and the mention of other versions in this forum, e.g. Trim_12.bat.

 

Mr Winapp.ini (Robbie Ward) pointed me to a pasted version of the file at paste2.org/MH6sCceX as there is a problem downloading it from the Winapp2.com link, but I am unsure if the is your latest version and if it is not, where I can get the latest version.

 

I have experimented with Trim.bat from the paste source on an older computer and it seems to have worked, but I would feel happier if I knew it was the latest version.  At the top of the file its says "FILE CREATION 13:52 08/03/2012".

 

Can you or any one help with this query?

 

Thanks

 

I am a power user in some respects, but I have forgotten most of what I used to understand about batch files.

Share this post


Link to post
Share on other sites

That is the latest version, i copied my local copy of trim.bat into paste2.

 

I'm not sure why no one can access the .bat files on my site

Share this post


Link to post
Share on other sites

I'm not sure why no one can access the .bat files on my site

 

Maybe zip them? Could be some security thing via the host, some won't host a .bat file.

Share this post


Link to post
Share on other sites

@Winapp2.ini - I thought I gave you and Alan_B the EXE compiled Trimmer-v1.12.exe when we finished this project.  Let me know if you do not have it and I can get it to you.  PM me for the info.

Share this post


Link to post
Share on other sites

Maybe zip them? Could be some security thing via the host, some won't host a .bat file.

They used to work though. Weird that they would change a policy that now breaks some of my site functionality without telling me :huh:

Share this post


Link to post
Share on other sites

Hi

 

I am quite certain that I always posted the Trim*.bat variants as Trim*.txt variants because Piriform did not allow *.bat updates,

with the instruction that after copying / downloading the name should be changed to Trim*.bat.

 

I am absolutely certain my postings were in normal Windows ANSI standard with conventional CR/LF ( 0x0D,0x0A ) style line terminators,

and not the horrible unreadable UNIX style variants ( omitting the 0x0D ) which subsequently appeared on the forum

 

Windows powered up in stupid mode over a year ago and confused itself over which HDD possessed which Disk Identity,

then automatically resolved the confusion by copying the Disk Identity of the MBR style 960 GB HDD to the GPT style 600 GB HDD,

and because the 600 GB is always the first to be ready and becomes Drive 0, and it now had the signature of the 960 GB HDD,

and then it saw the 960  GB HDD as DIsk 1 and immediately put Disk 1 OFFLINE due to Disk signature conflict - stupid imbecilic Windows.

Windows then started C:\Windows on the 600 GB HDD - and fell flat on its back - legs in the air like a dead cockroach because there was no C:\Windows on that HDD.

I had the proper C:\Windows running on the 960 GB HDD within half an hour.

 

Stupid cantankerous Windows will NOT allow me to cancel its folly - it will not allow me to change back to GPT unless I first INIT the drive.

 

All my primary partition image backups were held on the GPT disk - Windows now sees it all as RAW or UNALLOCATED.

I always copied my primary backups to both an ESATA and USB connected external drives, so no serious data loss.

Unfortunately all my adjustments to TRIM.BAT were created / tested on the 600 GB HDD,

and the latest tweaks were not part of any image backup.

 

I now have a superior data recovery tool which can access the "RAW / UNALLOCATED" files,

and tomorrow I plan to dig out the the latest Trim bat file.

 

 

Share this post


Link to post
Share on other sites

Here again is Trim_12.txt

 

Simply download and change the name to Trim_12.BAT and you have the last version that I finalized

 

Regards

Alan.

trim_12.txt

Share this post


Link to post
Share on other sites

@ Alan_B & Winapp2.ini

I just sent both of you the same message with the link to Trimmer-v1.12.exe.  For some reason I could not include both of you in the same message.  :wacko:

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...