Windows 7 Forums

Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Looking For A Specific Solution - Two Larger Directories Into One

21 May 2012   #1
Norwood

 
 
Looking For A Specific Solution - Two Larger Directories Into One

I need a solution that can take two given directories, take random files from each and create a new, smaller directory.

For example Directory "Photos 2011" has 500 pictures in it and "Photos 2012" has 200 pictures.

I would like the program to randomly choose files from each directory and create a directory of those random files into another directory.

To say the least, googling for this is unwieldy. So I'm hoping someone may have needed this solution before and used a particular tool they can recommend.


My System SpecsSystem Spec
.
22 May 2012   #2
UsernameIssues

W7 Pro SP1 64bit
 
 

This can probably be done via a batch file and there are some forum members that could throw something together for you - maybe they will stop by your thread and help you out. In the mean time, you might want to start learning a scripting language (like AutoIt3 or AutoHotKey) so you can cobble some together some code of your own for this task.
My System SpecsSystem Spec
22 May 2012   #3
Norwood

 
 

Sounds perfect. I love trying to write up something...always finding ways to make my admin life easier. If it can be done with a .bat I could probably figure it out.

Thanks!
My System SpecsSystem Spec
.

22 May 2012   #4
Kaktussoft

Microsoft Community Contributor Award Recipient

Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
 
 

Why copy some random files from 2 folders to new folder? Costs a lot of I/O and diskspace.
What do you want to accomplish with that?
My System SpecsSystem Spec
22 May 2012   #5
UsernameIssues

W7 Pro SP1 64bit
 
 

Quote   Quote: Originally Posted by Norwood View Post
...If it can be done with a .bat I could probably figure it out....
The 3rd post here shows the use of random.
:-)
My System SpecsSystem Spec
22 May 2012   #6
Slartybart

x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem
 
 

Random slideshow perhaps? There must be an easier / more efficient way.

Peace!
My System SpecsSystem Spec
22 May 2012   #7
Norwood

 
 

Quote   Quote: Originally Posted by Kaktussoft View Post
Why copy some random files from 2 folders to new folder?
Why not?

Random Example:

Directory A has REM's discography. About 300,000,000,000 songs.
Directory B has Grateful Dead's discography. Nearly 400,000,000,000 songs.

Instead of picking files individually, pressing Ctrl C, navigating to Directory C and pressing Ctrl V (or even dragging and dropping) it would be much easier to automate it.

Did you have a solution, or did you just want to know what I was doing?
My System SpecsSystem Spec
22 May 2012   #8
Trucidation

 

Knowing what you are trying to do can help people figure out alternative solutions if necessary.

In your example (song playlist?), it would be far more efficient for a media player to do this (select files randomly) rather than have the underlying file system copy files at random.
My System SpecsSystem Spec
23 May 2012   #9
Norwood

 
 

If artist A has 400 songs and artist B has 11...I don't want those two mixed together.

Not an even mix...or in the industry "enough artist separation".

A script can handle it fine.
My System SpecsSystem Spec
28 May 2012   #10
Slartybart

x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem
 
 

@Norwood - I don't know of any software or script that does what you want. It sounds as though you're looking for a custom program or script to do random selection based on certain criteria (number of songs in a directory).

You might find something on Source Forge.net or Download.com, you'll have to look around though because you want specific functionality.

Good luck.
My System SpecsSystem Spec
Reply

 Looking For A Specific Solution - Two Larger Directories Into One




Thread Tools






Similar help and support threads
Thread Forum
Is there a solution to my specific problem, or should do a fact. reset
I have a Windows 7, 64-bit Dell computer. One day, while going through some un-wanted programs and un-installing them, my theme suddenly changed from aero to basic theme. From there on, everything went horribly wrong; my audio and video ceased to work(they work in safe mode), Microsoft Security...
Sound & Audio
Is there a solution to my specific problem, or should do a fact. reset
I have a Windows 7, 64-bit Dell computer. One day, while going through some un-wanted programs and un-installing them, my theme suddenly changed from aero to basic theme. From there on, everything went horribly wrong; my audio and video ceased to work(they work in safe mode), Microsoft Security...
General Discussion
Assigning GPO to specific users on specific systems
I am trying to develop a GPO that will only apply to my primary laptop users while they are using their laptop but am having trouble getting it just right. What this GPO is meant to accomplish is to alter the default my documents location for my laptop users only while using their laptops. If the...
General Discussion
Specific desktop icons for specific users
Hi, I created a new user acount for my son on my primary desktop. Upon creating it and logging in to the newly created account I see a bunch of my applications on his desktop. I want to make his desktop as clutter free and only have the apps he needs and uses. Hastily I go and delete some of...
General Discussion
Looking for specific software solution - Interior decoration
I realize this is an odd request but...I have a large collection of figures and collectibles (yes, I'm a geek). I have them displayed on my wall as best I can, but the number has gotten to a point where they don't look as aesthetically pleasing anymore. I'm wondering if there's anykind of...
Software
Specific Security Solution For Me
Hi, I was wondering what your recommendations are regarding my specific needs for a security solution. My current setup is Avira AntiVir Personal for my real-time and on-demand virus and spyware protection. Windows' default firewall and my Linksys router's firewall. I did not have any...
System Security


Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 04:38.

Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App