Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Jun Tangunan
  Where is Jun Tangunan?
 Cabanatuan
 Philippines
 Jun Tangunan
 To: Dan Baker
  Where is Dan Baker?
 Effort of the Poconos
 Pennsylvania - United States
 Dan Baker
 Tags
Subject: RE: Get a List of Files in Subdirectories?
Thread ID: 347794 Message ID: 393644 # Views: 60 # Ratings: 0
Version: Visual FoxPro 9 Category: General VFP Topics
Date: Friday, December 20, 2013 11:36:56 PM         
   


> Wow, 98% compression of image files is pretty impressive.
>
> Dan B.
>
> > Hello Dan,
> >
> > I only use that for small quick search but is very useful. It has two flaws (at least for me) though which are:
> >
> > a) Hard to Cancel search via pressing Esc key once it started, and if I recall properly,
> > b) It does not show result outright as those are found and shows everything in one go at the end of the process.
> >
> > So for some more needs on my part, I go to recursion using ADIR() similar to what have been shown above by others. It gives me these things:
> >
> > a) The ability to abort operation via the Esc key
> > b) Shows the result as they are found
> >
> > Last 2 months before my leave, I was informed by my IT guy that we are running out of space allotted for users on server so I performed scannning of huge files on our server. And to my surprise (aside from songs and movies users save which we regularly delete), there are thousands of images used by engineering, contract, safety and some more departments and the total combined size is around 50GB. Those come from digicams and the actual dimension is really big. They do not know how to compress so they just save those in their own dedicated folder in the server.
> >
> > Those are important files so I cannot delete those. But I can reduce image quality and size because most of those have size of 1.2MB and above. I looked for something in the net that can help me with this but found none, solution create one.
> >
> >
> >
> > Thanks to VFP and GDI+ (thanks to Cesar and Mike Gagnon's codes for basis). This took me two days including refinement. This small app does recursion using ADIR(), showing results outright as it finds matches with filters and is able to do batch size reduction. I was able to recover around 98% of space this way. Compressed images are still good and clear so everyone is happy.
> >
> >
> >
> >
> >
> >
> > https://vfpx.codeplex.com/releases/view/99045
> > http://sandstorm36.blogspot.com


LOL! I think I over-calculated. I guess it is more around 94% space recovery. Still that is a huge space recovered. I would have liked to attach a sample original and the compressed result here but attachment size won't allow it.





https://vfpx.codeplex.com/releases/view/99045
http://sandstorm36.blogspot.com

ENTIRE THREAD

Get a List of Files in Subdirectories? Posted by Dan Baker @ 6/21/2012 12:10:19 PM
RE: Get a List of Files in Subdirectories? Posted by Mike Gagnon @ 6/21/2012 12:18:52 PM
RE: Get a List of Files in Subdirectories? Posted by Anders Altberg @ 6/21/2012 12:27:35 PM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 6/21/2012 12:42:38 PM
RE: Get a List of Files in Subdirectories? Posted by Borislav Borissov @ 6/21/2012 12:39:24 PM
RE: Get a List of Files in Subdirectories? Posted by Bill Amidon @ 3/26/2014 10:54:51 AM
RE: Get a List of Files in Subdirectories? Posted by Cetin Basoz @ 6/21/2012 12:42:14 PM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 6/21/2012 12:44:10 PM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 12/19/2013 7:15:37 PM
RE: Get a List of Files in Subdirectories? Posted by Luis Maria Guayan @ 6/21/2012 4:44:42 PM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 6/22/2012 2:40:24 AM
RE: Get a List of Files in Subdirectories? Posted by Jun Tangunan @ 12/20/2013 1:30:01 AM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 12/20/2013 2:45:40 AM
RE: Get a List of Files in Subdirectories? Posted by Jun Tangunan @ 12/20/2013 8:14:24 AM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 12/20/2013 11:04:31 PM
RE: Get a List of Files in Subdirectories? Posted by Jun Tangunan @ 12/20/2013 11:36:56 PM
RE: Get a List of Files in Subdirectories? Posted by David Mustakim @ 12/21/2013 3:13:34 AM
RE: Get a List of Files in Subdirectories? Posted by Pete Sass @ 12/27/2013 5:02:03 PM
RE: Get a List of Files in Subdirectories? Posted by Dan Baker @ 12/27/2013 8:18:24 PM
RE: Get a List of Files in Subdirectories? Posted by Mohammad Irfan @ 3/27/2014 6:30:16 AM