I am new here and I hope I have posted this in the correct section
I have a fair few games on my SSD and I use NTFS Compression to compress the files, allowing a few extra games to be installed in expensive disk space!! Now some games have tens of thousands of files each and doing this manually would take some time.
Would some one able to help develop a script or plugin for Directory Opus to allow me to:
Run a search for files which can caluclate the difference between "Size on Disk" & Size. and display them if the Percentage is higher then 50% (50% is a random number I came with) It would be nice if this can be changed either by replacing "50" with another number in the actual script texts or on the fly?!
As I said above I would like my games to perform a little better and I feel uncompressing files that have less than 0-20% compression would be best way to go about it..
It would be good If I can also run the search with files between xMB - xMB (but I am sure this can be done with adding extra search parameters to find files bigger than and less than. and then adding the script to a 3rd parameter to actually perform the search.
I would really appreciate help on this, as I actually think this would help me in some work related tasks for work with the fileservers etc...
After looking in more detail, there isn't currently a good way for VBScript to get the size on disk value via the Opus or Windows APIs. The only suggestions I found involve running compress.exe and parsing the output, which would probably go wrong with files over 4GB.
We might be able to add something for a future release, however. If you link you're account it will make it more likely.
Would you able to confirm you have that issue with Find? It wont display Size On Disk properly..
I have decided I will CMD it..
using opus to export a listing of files and I will import to excel and add a column with difference between the two and will sort that and output into a batch file which can de-compress the files
WOuld you please look at opus and fix the issue at hand as it's not working for me.
I run any search with the columns enabled (Size auto & Size on disk Auto)
both of them show the same KB... but when browsing files it actually shows the real values.. seems a small bug.
I was able to use the Print to File/Clipboard feature and it listed all the files to my clipboard and Size on Disk worked well...
I basically created a spreadsheet
Added the columns (full path/Size/Size on Disk)
when pasted I did a Search and Replace " KB" with ""(empty) to delete the KB from both the Size Columns
then I did my sorting etc..
I added Columns between the path full with " (as some files have a space in the filename, using "" allows dos to read them)
I also added a column at the front with "Compact /U" (which means uncompress file)
copy and paste to notepad.
do a search and replace to move the "" into the correct places..
then saved as a batch
I now have all files that are compression of less than 100KB difference (Uncompressed)
then I re did the precess with files that are over 10MB.. and allowed upto 1000KB difference..