topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • Wednesday June 18, 2025, 6:58 pm
  • Proudly celebrating 15+ years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Recent Posts

Pages: prev1 ... 9 10 11 12 13 [14] 15 16 17 18 19 ... 23next
326
Post New Requests Here / IDEA: Delete all files except two particular ones
« Last post by nkormanik on December 08, 2013, 07:39 PM »
This little challenge probably just involves some correct batch code, I'm guessing.  But maybe someone writing a small program would be worthwhile.  Don't know.

Suppose we have a tree-full of folders.  Each folder has lots of .png files of various names.

I want to delete every single .png file in the entire folder-tree (recursive?) EXCEPT for two:

"keep_this_one.png"
"save_me_as_well.png"

"keep_this_one.png" and "save_me_as_well.png" MUST be kept (i.e., leave alone), in the various folders they are located in.

All the other .png files are to be deleted.

Leave any non-png files alone.

Any help?

Thanks much.

As always, if the solution already exists, please direct me.

Nicholas Kormanik

327
Wow, that was fast.  Sounds super!

328
You might want to change the ini file to say time is "third" parameter, instead of "second", for those wanting to use command line.

As a possible enhancement, though not at all necessary, would be to show somewhere how much time remains before program termination.  Just a thought.

329
B I N G O !!!

Nuked that baby!!!!

And..., icon in system tray was different this latest time.  Instead of generic, was the icon of program to be nuked.

Great job, Christopher.  Mission accomplished.

Thanks much.

330
Downloaded from link.  ini file still appears the same as yesterday.  You made some change to it?

I see the new RunAndKill is version 1.0.2.0, as would be expected today.



331
In Windows Task Manager... there is no parameter shown after the program name.

Just "ace.exe"

332
Correct.  Parameter is "Server"

exe="C:\Program Files\AceReader Pro\ace.exe" Server

Thank goodness for those rare folks that love a challenge.

Challenges seem to be everywhere.

333
Chris, what a bummer.  Ace.exe still alive and kicking, even with your new version.  I can see it in Windows Task Manager.  And terminating from WTM really does kill it dead in its tracks.

What about just simply doing the kill part?  I'll load the program first.  Then double-click a c.gingerich "Kill."  And in xx minutes the program gets friggin nuked!!

"Kill" can ask for the program name to be nuked (same as what WTM shows, ace.exe), and the time to wait before nuking.  Maybe no need for user to even enter a path (in ini file), as, in present example, ace.exe is the only one with that name running.

"Kill" would be adding for user just the one additional step of starting the initial program first, before running the "Kill" grand terminator.

334
Strange case....  AceReader Pro.  Set "RunAndKill" to terminate it after ONE minute.  When the one minute is up, the RunAndKill icon in the system tray disappears, but AceReader appears totally unaffected, still continues on uninterrupted.

Here's the ini file line specifying one minute:

killtime=00:01:00

Some additional weirdness about this particular AceReader program:

-- the AceReader exe requires an additional parameter, "Server"

I typed this parameter into the RunAndKill ini file, following the exe path as follows:

exe="C:\Program Files\AceReader Pro\ace.exe" Server

-- AceReader requires being started from WITHIN a certain directory, "C:\Documents and Settings\All Users\Application Data\AceReader Pro\"

In order to accomplish this, I decided to copy RunAndKill, plus the ini file, INTO that folder.  Then I created a shortcut to it on my desktop.

Any idea why AceReader doesn't get KILLED, like it's supposed to??

By the way, using Windows Task Manager... I can see ace.exe running, and I can End Process, and AceReader does get terminated.  Same as I was hoping RunAndKill would do.

Much thanks,
Nicholas Kormanik


335
Post New Requests Here / Re: Separate out and move files to subfolders
« Last post by nkormanik on November 12, 2013, 08:14 PM »
Both programs are gems.  As are so many others created here.
336
Post New Requests Here / Re: Separate out and move files to subfolders
« Last post by nkormanik on November 12, 2013, 03:01 AM »

Terribly sorry for not responding sooner.  For some reason I wasn't notified that anyone did anything on this project request -- must have forgotten to check "Notify me of replies."  Just assumed no one was interested, or that it was too hard to accomplish.  Wow.  Lots of action going on here!  How exciting.

Test Results:  "File Groupie" worked flawlessly.  Hip hip hooray!!!

Thank you very much Chris Gingerich, and all of you that tested and helped bring this useful program about.

My Test:

File Groupie version 1.0.2.1

64,709 files totalling 55.1 GB, all in one single folder

Moving files to Target Folder: c:\FGed

Files per sub-folder: 1000

Sort files by: Size - Smallest to Largest

Left the optional settings blank.

Hit "Run"....

Reading the files took 8 minutes.

Sorting took 26 minutes.

Processing took 5 minutes.

Output Results:
(note that file sort order worked!  size-low early on, to size-high later)

Folder  File Bytes      Files
0       49,522,465      1,000
100     77,547,802      1,000
200     96,510,142      1,000
300     113,185,581     1,000
400     127,619,495     1,000
500     141,009,494     1,000
600     153,392,198     1,000
700     166,393,938     1,000
800     179,206,949     1,000
.
.
.
5800    1,903,439,374   1,000
5900    2,092,646,683   1,000
6000    2,355,084,664   1,000
6100    2,740,121,189   1,000
6200    3,370,157,067   1,000
6300    4,358,001,053   1,000
6400    5,036,581,013   709

64,709  Files

337
Skwire Empire / Re: Release: sStockQuote
« Last post by nkormanik on November 11, 2013, 07:56 PM »
Wow, Skwire.  Better and better.  May turn out to be a tool many can use.

338
Finished Programs / Re: DONE: Folder Properties Auto-Update....
« Last post by nkormanik on November 11, 2013, 01:23 AM »
I think it has more to do with some other program I happen to be running concurrently, frankly.  In other words, my fault.  Not yours.

Not worth your valuable time and effort.  You've already give A LOT.

339
Finished Programs / Re: DONE: Folder Properties Auto-Update....
« Last post by nkormanik on November 10, 2013, 07:30 PM »
Okay..., not "flawless" here either.  But highly acceptable.

Occasionally (repeat OCCASIONALLY) FolMon will freeze up, and stop counting the new files as they are added to the folder being monitored.

In those rare cases I simply close FolMon, and restart it.  And then it seems to work fine.

I've been using FolMon a lot.  And it has been a really useful addition to my arsenal.

I feel the issue is NOT worth fooling with.  Work-around for the rare freezes is easy enough.  Leave well-enough alone.

340
Post New Requests Here / Separate out and move files to subfolders
« Last post by nkormanik on November 05, 2013, 08:23 PM »
Suppose we have a large collection of images (.jpg) in one single folder -- 120,000 of 'em.

We would like to move these image files to separate subfolders, 1000 per subfolder.

I presently have a way of doing this, but it's fairly tedious.

Wondering if someone might like to write a program to to it automatically.

Here's how I'm imagining it might work:

Fire up program.  Several questions are asked:

-- Where are the files you want to separate out?

(possible answer: c:\images)

-- Where do you want to move these files to?

(possible answer: c:\separated)

-- How many files per subfolder?

(possible answer: 1000)

-- In what order are the files to be moved?

(possible answer:  smallest to largest)

-- Press proceed when ready....


After program runs, there will be, say, 120 new folders in c:\separated:

c:\separated\001
c:\separated\002
c:\separated\003
.
.
.
c:\separated\120

Each of these subfolders will contain 1000 files.  From smallest (in subfolder 001) to largest (subfolder 120).


What do you think?  If there exists a way already out there, please let me know.  I'd greatly appreciate your help.

Thanks,
Nicholas Kormanik

341
Post New Requests Here / Re: Difference between two files' time/date
« Last post by nkormanik on August 28, 2013, 06:00 PM »
Outstanding, c.gingerich.  Even better than what I had in mind.  A really useful tool.

Hope others, too, will be able to find this and put it to use.

Thanks so much!
342
Post New Requests Here / Re: Difference between two files' time/date
« Last post by nkormanik on August 27, 2013, 04:51 PM »
Fantastic, c.gingerich.  Yes, by "absolute" I mean it shouldn't matter which file is placed first or second, either can be newer or older, or the same.

Without absolute value, if newer file is placed first, the result would be a negative number.

I see no problem giving a negative number, if it makes programming any easier.  But I'm guessing most people would like to simply see a positive number (absolute value).

By the way, regarding my request here, I am primarily interested in the TIME difference between the two files.  In a single folder (subdirectory) output is being generated -- 16,000 files -- the whole process takes around three hours.  I'd like to be able to see that total time taken by using such a program as I request -- put in the first-created file, and the last-created file, press enter, presto, roughly total time of the entire process.

There is an initial file in that folder that is from a "pre-process," with an earlier time/date.  So simply grabbing the earliest date and the most recent date wouldn't give the desired answer.

Thanks a bunch!
343
Post New Requests Here / Difference between two files' time/date
« Last post by nkormanik on August 26, 2013, 05:41 PM »
Here's the idea:  Window comes up with two sub-windows on left and right.

Drag a file to the inside left sub-window.

Drag another file to the inside right sub-window.

Click Okay.

Up pops amount of time (absolute) between the two files.  ('Modified' file time/date preferred.)

Thanks!
Nicholas Kormanik

344
Finished Programs / Re: DONE: Folder Properties Auto-Update....
« Last post by nkormanik on August 24, 2013, 05:49 PM »
Fine as is, 4wd.  No worries.
345
Finished Programs / Re: DONE: Folder Properties Auto-Update....
« Last post by nkormanik on August 24, 2013, 12:14 AM »
4wd, not a single freeze all day long.  I think you put your finger on it.

Thanks!
346
Finished Programs / Re: DONE: Folder Properties Auto-Update....
« Last post by nkormanik on August 23, 2013, 12:23 AM »
I've been finding FolMon really useful, 4wd.  Recently running into an issue, though.

Just on a fast Windows 7 machine.  Occasionally FolMon freezes.  I know the number of files in the monitored folder keeps increasing.  But FolMon keeps showing the same numbers, at the point of freeze.

I use Windows Task Manager to kill the current instance, and start up a new instance.  Numbers jump up to actual.  Going along fine for a while.  Then freezes again.

Don't want to fiddle with something that works so well.  Mostly just wanted to inform you, more than anything else.

Thanks again!
347
Sometimes it's just toooo easy to push the download button.

Thanks for those suggestions.

348
Tentatively here is the program idea.  A window comes up asking for the following:

Root folder __________ (full path. example, c:\downloads).

If a subfolder off root folder, using recursive examination, has more than __________ (give number. example, 10)

of the file type __________ (provide file type. example, jpg)

then move the entire subfolder to the following location __________ (full path. example, c:\jpg)


Let's suppose c:\downloads has several hundred downloads from torrents, etc.  At some point all the subfolders in there have to be arranged and put into their proper places.  Quite a chore.

The proposed program would help with this process.  Subfolders with a bunch of jpg images could be pulled out and placed into an appropriate location.  Same with pdf, epub, and some others.

Would help a lot with the needed re-arranging, housekeeping, management.

Any thoughts?  Already been done??

Thanks,
Nicholas Kormanik

349
Skwire Empire / Re: Release: sStockQuote
« Last post by nkormanik on August 04, 2013, 03:22 PM »
Getting better all the time....
350
c.gingerich, RunAndKill works like a charm.  Does exactly what I asked for.  Thank you!

What more did you want to do with it??

I also want to thank the others for their suggestions.  Really helpful folks here.


Pages: prev1 ... 9 10 11 12 13 [14] 15 16 17 18 19 ... 23next