topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Saturday April 27, 2024, 1:58 am
  • 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

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - nkormanik [ switch to compact view ]

Pages: prev1 2 3 4 5 6 [7] 8 9 10 11 12 ... 23next
151
So much fun that we all should do it.

What say, gang??

(grumble, grumble, grumble....)


152
Well, @highend01, that's some amazing stuff.  Thank you!

Basically works as asked for, as a one double-click trick.  Files up to a certain total-size limit get moved to the new location.

One issue did come up, though.  Via this approach there appears to be an inherent upper limit.  At 2 GB.  No matter how high the user inputs their own upper limit, Windows stops short.

Hmmm.  Any idea why?

I suppose user (me) can come back for seconds, and thirds.  I.e., run the batch file multiple times.


153
@highend01
@4wd
@Shades

4wd, works as advertised.  Very slick.  Thank you!

Let's see if highend01 can code it into a batch file, for single double-click.

Still wondering if that's possible.


154
@highend01
@4wd
@Shades

Agree that native Explorer begs for enhancements.  I've tried to do that with whatever third-party upgrades I could find.

Another alternative file manager, though, is definitely something to consider.

Regarding the present challenge, one double-click seems super appealing, if highend01 could pull off the wizardry.  Like, wow!

I'll try 4wd's offering.  Looks promising.


155
Exactly, highend01.  Just count the total size, if possible, and stop the process before reaching the user-inputed limit.

Don't mean to put the burden on you.  But you certainly aced the last similar request.

I've come across programs for filling up DVDs and CDs with music files.  As I recall, the programs will pick and choose from a set of files, and put as much as possible onto the disk.  Summing total size.

In the present case I just want to start from -- actually, 0001_xyz.mp4.  Then 0002_xyz.mp4.  And on and on until the set total size.  I append the numbers -- serialize -- to all the .mp4 files, to make playing easier (Amazon firestick, using MX Player on the tv, plays in the order of filename, thus the numbers).


156
So excited with the last request that I'm making another sort-of-similar request.

To fill up a USB thumb drive with various YouTube downloaded videos, I use Explorer, detail view, select the first....

...page down...

...page down...

...and Shift-select the last.  So as to get the total size I want to send to the thumb drive.

Then I drag these files over to the thumb drive.

I'm wondering if there could be a batch file that can help out with the process.

Type into the batch file:

-- Source
-- Destination
-- Total 'upper limit' amount of files desired to be transferred (will end up approximate, of course)

'Order' of files moved, which first, should be by 'filename' order.  (I think that's Windows' default, but not sure.)

Double-click.  Presto.

Example:
Source:  d:\video\
Destination:  h:\
Amount of files to transfer:  50 Gb.

Move the files.
Order of move by filename.

Wondering if this is readily doable through batch file (or powershell).

(My hunch is there would have to be a running sum of sizes sent to some cache.  Keep going until....  A batch file to simply move files is easy enough.  The trick here is the total size wanted.)

Thoughts appreciated.

Nicholas Kormanik


157
@highend01

Well, that's magic.  No two ways about it.

Amazing.  Works perfectly.

Thank you so much, highend01.

Wonderful code.


158
Great questions, Shades.  Wow, what a thinker.

Assume:

c:\a

c:\b

Same computer.

Why 10?  That was just a hypothetical.  If "batch file" (or .ps1 script) user can put in any number they want.  Right?

The key is to pick off 10 folders from c:\a, and move them to c:\b.

(These folder names are hypothetical, too, of course....)

Sweet and simple.


159
Suppose root folder A has 1000 sub-folders.

User (me) wants to deal with just 10 folders at a time.  Not all 1000.

Would like to create a batch file that moves 10 folders (in any order, no worries about that) from the root folder A to another root folder B.

Presently the solution is to just highlight with Explorer and drag over.

Better to have a little batch file to double-click on to do the job, if possible.

Any suggestions appreciated.

Nicholas Kormanik


160
@4wd  EBO.  Beautifully accomplished.  Terrific little program.  Amazing skills.

Thank you!

@highend01  Absolutely.  After using 4wd's EBO to make sure what's about to be zapped, time for MTOF to do the pruning.

Great work!


161
A quick note on what the application is with the present request:

Music Collection Maintenance.

I use a program called "Stream Writer" to capture streaming music.  And Media Monkey to maintain the organizing and database of the music.

Because of duplicates in pieces, I'd estimate the best stuff is only 20% of all that's been collected.  No sense in keeping the lower bitrate files, for instance.  And, often there's a "(2)" suffixed to same song, same bitrate.  (See "Wende" snap in original post at top.)

Seems we're not yet there, as far as optimal music collections and maintenance is concerned.


162
@highend01

You betcha, highend01!  You da man, and, yes, "More than one file.exe" is gold, for the purpose which it was created -- deleting all but the largest file in each folder, over a directory structure.

Now..., if you want to ENHANCE "More than one file.exe".....???

Before cutting out all that deadwood, really best to at least take a sampling of the files being zapped.  Open a few of those folders and see what's what.

That's the reason for the present request.


163
@4wd

Well, your PowerShell script nailed it.  Wonderful work.

Sorting, as you mentioned above, would not be so important as having the ability to export the list.  (However, nirsoft's SysExporter can indirectly grab the list, I noticed.)

Thanks, 4wd, for your continuing assistance.



164
@Nod5

How about that!  Everything does indeed seem to do the trick.

"M:\Audio 2\" childfilecount:>1 folder:

Sooo many additional options as well.  Never knew.

And, because of drawing upon the index, fast as lightning.

Tentatively may be a winner.




165
@c.gingerich.  Hope to see you back, Chris.  Either on this one, or the next.  Thanks for your skilled efforts!

166
@c.gingerich  Sill the same problem.  See snap of Garth Brooks above.

As an experiment I created a large folder hierarchy/tree structure with NO TWO FILES in any single folder.  mtof.exe flags folders even in this case, if more than one file exists in the mini-sub-hierarchy.

The objective is:  ONLY CALL 911 IF YOU SPOT TWO (OR MORE) BIRDS SITTING **TOGETHER** ON THE SAME SINGLE BRANCH.

Maybe it can't be done.

mtof.exe, though, is still a pretty neat little gem that I do appreciate.

167
I had to modify my post above, to get the images right.  See if that helps to explain.

Using an actual tree analogy, only ONE BIRD is allowed to rest on any ONE BRANCH.  If TWO BIRDS are resting together on any single branch, must call 911.  (Police state, ya know.)

168
My bad.  Not sure how to word it.  Top-level, as opposed to out in a branch?

Please see images:

Garth.jpg

In the case of Garth, there are two files nested.  Only one in any particular folder.

Wende.jpg

In the case of Wende, there are also two files nested.  But they reside in one single folder.

mtof.exe treats both of these scenarios the same.

It's the Wende case I want to flag.




169
c.gingerich, beautiful work.  Close, but not quite.  mtof.exe is a keeper as is.  But the program requested must make a distinction between "files" and "folders."

mtof.exe presently groups the two together.

Does any folder have more than a single "file" within it?

Perhaps Windows doesn't allow for the distinction.

By the way, I tried again with TreeSize, and left it running overnight.  Still was not able to show a refreshed window with results by morning.  Just sat there.  Duh.  And this the Cadillac of such processing.




170
Given a large directory tree full of folders, maybe thousands, each and every folder is ONLY supposed to have one single file within it.

If there is any folder with more than a single file within it, I need to take a look at what the additional file(s) is/are.

The task of following each and every branch, and opening every folder to have a peek is enormously daunting, really time consuming.

Instead, ideally, software can go throughout and do the checking.

If more than one file is in a single folder, create a link to that folder, to form a list of links.

After the process, one can click on a link to automatically open said folder in explorer.

An additional option might be to show the number of files found.  But not so necessary as simply providing the link to the folder.

Any programming help from you wizards will be greatly appreciated.

As far as existing solutions out there, TreeSize sort of appears helpful.  However, two issues with TreeSize:  1. It chokes before even showing a list of folders.  2. There is no way of telling it to ONLY show folders with MORE THAN ONE file within it; it shows ALL folders.

Thoughts and suggestions much appreciated.

Nicholas Kormanik


171
Thanks Ath.  Sed it is, then.

172
Wondering how one might delete all text up until finding a particular text string.

Suppose the text string is “WXYZ”.

And suppose there are around 100 lines above the “WXYZ” line.

Too, suppose we have 1000 files to do this to.

Any suggestions appreciated.

Nicholas Kormanik


173
Sorryformyen, great job!  A lot of work you did.  Thanks for sharing.

174
General Software Discussion / Re: Disabled Services in Windows 10
« on: January 10, 2019, 04:51 PM »
Thanks, wraith808.  I disabled it because of the incessant, never-ending writing to logs.  Thought it could be hurting performance in ways.

175
General Software Discussion / Re: Disabled Services in Windows 10
« on: January 10, 2019, 02:53 AM »
Yes, 4wd, excellent lead for those that don't know about Black Viper.

That's what I started with.  You betcha.  But I still cut back a few.  Wondering if I trimmed anything I shouldn't have.

Hate unneeded, unwanted stuff running in the background.  If necessary, okay.  If not, seems good to disable.

It's so hard to know for sure which is which.

Pages: prev1 2 3 4 5 6 [7] 8 9 10 11 12 ... 23next