Looking For A Specific Solution - Two Larger Directories Into One

Norwood

Lowly IT Drone
Member
VIP
Local time
10:13 AM
Messages
105
Location
A bit south o' Boston
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 Computer My Computer

At a glance

Windows 7 64bitAMD Phenom II X4 955 Black Edition Deneb 3.2G...G.SKILL Ripjaws DDR3 SDRAM DDR3 1600 (PC3 12800)SAPPHIRE 100284L Radeon HD 5750 1GB 128-bit G...
Computer type
PC/Desktop
OS
Windows 7 64bit
CPU
AMD Phenom II X4 955 Black Edition Deneb 3.2GHz Quad-Core
Motherboard
ASUS M4A77TD AM3 AMD 770 ATX
Memory
G.SKILL Ripjaws DDR3 SDRAM DDR3 1600 (PC3 12800)
Graphics Card(s)
SAPPHIRE 100284L Radeon HD 5750 1GB 128-bit GDDR5 PCI-E
Sound Card
Audigy
Monitor(s) Displays
2 x 22" Widescreens
Hard Drives
System Drive: OCZ Vertex 3.20 120GB SSD
Internal: 2x 1TB Seagates
External: 1 TB Seagate
Case
Cooler Master Elite 310 ATX
Cooling
Arctic Cooling Freezer 7 Pro Rev.2 92mm Liquid Cooling
Keyboard
Microsoft Comfort Curve Keyboard 2000 v1.0
Mouse
Logitech G5 w/ full 36g weighted cartridge
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 Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
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 Computer My Computer

At a glance

Windows 7 64bitAMD Phenom II X4 955 Black Edition Deneb 3.2G...G.SKILL Ripjaws DDR3 SDRAM DDR3 1600 (PC3 12800)SAPPHIRE 100284L Radeon HD 5750 1GB 128-bit G...
Computer type
PC/Desktop
OS
Windows 7 64bit
CPU
AMD Phenom II X4 955 Black Edition Deneb 3.2GHz Quad-Core
Motherboard
ASUS M4A77TD AM3 AMD 770 ATX
Memory
G.SKILL Ripjaws DDR3 SDRAM DDR3 1600 (PC3 12800)
Graphics Card(s)
SAPPHIRE 100284L Radeon HD 5750 1GB 128-bit GDDR5 PCI-E
Sound Card
Audigy
Monitor(s) Displays
2 x 22" Widescreens
Hard Drives
System Drive: OCZ Vertex 3.20 120GB SSD
Internal: 2x 1TB Seagates
External: 1 TB Seagate
Case
Cooler Master Elite 310 ATX
Cooling
Arctic Cooling Freezer 7 Pro Rev.2 92mm Liquid Cooling
Keyboard
Microsoft Comfort Curve Keyboard 2000 v1.0
Mouse
Logitech G5 w/ full 36g weighted cartridge
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 Computer My Computer

At a glance

Microsoft Windows 7 Home Premium 64-bits 7601...Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz4,00 GBATI Mobility Radeon HD 5400 Series
Computer type
Laptop
Computer Manufacturer/Model Number
ACER ASPIRE 5742G
OS
Microsoft Windows 7 Home Premium 64-bits 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i3 CPU M 370 @ 2.40GHz
Motherboard
Acer Aspire 5742G
Memory
4,00 GB
Graphics Card(s)
ATI Mobility Radeon HD 5400 Series
Sound Card
(1) AMD High Definition Audio Device (2) Realtek High Defi
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
WDC WD5000BEVT-22ZAT0

My Computer My Computer

At a glance

W7 Pro SP1 64biti78GBIntel HD Graphics
Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Random slideshow perhaps? There must be an easier / more efficient way.

Peace!
 

My Computer My Computer

At a glance

x64 (6.3.9600) Win8.1 Pro & soon dual boot x6...AMD A6-3420M APU with Radeon(tm) HD Graphics6.00 GBAMD Radeon(TM) HD 6520G
Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-6c10us
OS
x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem
CPU
AMD A6-3420M APU with Radeon(tm) HD Graphics
Motherboard
Hewlett-Packard 1805
Memory
6.00 GB
Graphics Card(s)
AMD Radeon(TM) HD 6520G
Sound Card
(1) AMD High Definition Audio Device (2) IDT High Definiti
Monitor(s) Displays
HP W2072a 20" LCD (1600 x 900) @ 60 Hz
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
ST640LM0 00 HM641JI SATA Disk Device
Keyboard
Logitech k520 wireless KB
Mouse
Logitech m320 wireless mouse (bundled with KB)
Internet Speed
15/5 | 54 MB Wireless 'n'
Antivirus
Realtime: Defender or Avast | On-demand: Malwarebytes, ESET
Browser
IE 11 on Win8, IE 10 on win 7
Other Info
Media: [Gimp, Audacity, VLC] || Comm: [WEmail 2012, Skype] || Productivity: [OpenOffice,| Textpad] || Utils: [Sysinternals, cCleaner, Speccy, Defraggler]
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 Computer My Computer

At a glance

Windows 7 64bitAMD Phenom II X4 955 Black Edition Deneb 3.2G...G.SKILL Ripjaws DDR3 SDRAM DDR3 1600 (PC3 12800)SAPPHIRE 100284L Radeon HD 5750 1GB 128-bit G...
Computer type
PC/Desktop
OS
Windows 7 64bit
CPU
AMD Phenom II X4 955 Black Edition Deneb 3.2GHz Quad-Core
Motherboard
ASUS M4A77TD AM3 AMD 770 ATX
Memory
G.SKILL Ripjaws DDR3 SDRAM DDR3 1600 (PC3 12800)
Graphics Card(s)
SAPPHIRE 100284L Radeon HD 5750 1GB 128-bit GDDR5 PCI-E
Sound Card
Audigy
Monitor(s) Displays
2 x 22" Widescreens
Hard Drives
System Drive: OCZ Vertex 3.20 120GB SSD
Internal: 2x 1TB Seagates
External: 1 TB Seagate
Case
Cooler Master Elite 310 ATX
Cooling
Arctic Cooling Freezer 7 Pro Rev.2 92mm Liquid Cooling
Keyboard
Microsoft Comfort Curve Keyboard 2000 v1.0
Mouse
Logitech G5 w/ full 36g weighted cartridge
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 Computer My Computer

At a glance

Win7 Pro x64Koa i5-2550K8 GBSapphire ATI 6870 1GB GDDR5
Computer Manufacturer/Model Number
Self-built rig
OS
Win7 Pro x64
CPU
Koa i5-2550K
Memory
8 GB
Graphics Card(s)
Sapphire ATI 6870 1GB GDDR5
Sound Card
RealTek HD Audio / ATI HDMI Audio
Monitor(s) Displays
Samsung HDTV Monitor T23A350
Screen Resolution
1920 x 1080
Hard Drives
- SSD (C:)
- HDD (D:)
- BD-ROM (E:)
Keyboard
Logitech G110
Internet Speed
Unifi home (5mbps)
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 Computer My Computer

At a glance

Windows 7 64bitAMD Phenom II X4 955 Black Edition Deneb 3.2G...G.SKILL Ripjaws DDR3 SDRAM DDR3 1600 (PC3 12800)SAPPHIRE 100284L Radeon HD 5750 1GB 128-bit G...
Computer type
PC/Desktop
OS
Windows 7 64bit
CPU
AMD Phenom II X4 955 Black Edition Deneb 3.2GHz Quad-Core
Motherboard
ASUS M4A77TD AM3 AMD 770 ATX
Memory
G.SKILL Ripjaws DDR3 SDRAM DDR3 1600 (PC3 12800)
Graphics Card(s)
SAPPHIRE 100284L Radeon HD 5750 1GB 128-bit GDDR5 PCI-E
Sound Card
Audigy
Monitor(s) Displays
2 x 22" Widescreens
Hard Drives
System Drive: OCZ Vertex 3.20 120GB SSD
Internal: 2x 1TB Seagates
External: 1 TB Seagate
Case
Cooler Master Elite 310 ATX
Cooling
Arctic Cooling Freezer 7 Pro Rev.2 92mm Liquid Cooling
Keyboard
Microsoft Comfort Curve Keyboard 2000 v1.0
Mouse
Logitech G5 w/ full 36g weighted cartridge
@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 Computer My Computer

At a glance

x64 (6.3.9600) Win8.1 Pro & soon dual boot x6...AMD A6-3420M APU with Radeon(tm) HD Graphics6.00 GBAMD Radeon(TM) HD 6520G
Computer type
Laptop
Computer Manufacturer/Model Number
HP Pavilion dv6-6c10us
OS
x64 (6.3.9600) Win8.1 Pro & soon dual boot x64 (6.1.7601) Win7_SP1 HomePrem
CPU
AMD A6-3420M APU with Radeon(tm) HD Graphics
Motherboard
Hewlett-Packard 1805
Memory
6.00 GB
Graphics Card(s)
AMD Radeon(TM) HD 6520G
Sound Card
(1) AMD High Definition Audio Device (2) IDT High Definiti
Monitor(s) Displays
HP W2072a 20" LCD (1600 x 900) @ 60 Hz
Screen Resolution
1366 x 768 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
ST640LM0 00 HM641JI SATA Disk Device
Keyboard
Logitech k520 wireless KB
Mouse
Logitech m320 wireless mouse (bundled with KB)
Internet Speed
15/5 | 54 MB Wireless 'n'
Antivirus
Realtime: Defender or Avast | On-demand: Malwarebytes, ESET
Browser
IE 11 on Win8, IE 10 on win 7
Other Info
Media: [Gimp, Audacity, VLC] || Comm: [WEmail 2012, Skype] || Productivity: [OpenOffice,| Textpad] || Utils: [Sysinternals, cCleaner, Speccy, Defraggler]
Back
Top