How could I do this?
Moderators: SCUMBAG, INKoRP, spud, GURU, Clan Leader
- jof
- Clan Member
- Posts: 372
- Joined: Thu Oct 05, 2006 8:10 pm [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1236: count(): Parameter must be an array or an object that implements Countable
How could I do this?
I've got a directory. Inside the directory I have a shitload of sub directories. Inside each sub directory is a number of files. I want to move all the files from all the sub directories into one folder - preferably renaming them if the same filename already exists.
Don't let me down my fellow geeks!
PS: I have defragged several times and to my dismay the files didn't move to the folder I wanted them to.
Don't let me down my fellow geeks!
PS: I have defragged several times and to my dismay the files didn't move to the folder I wanted them to.
My suggestion is a tool that takes 2 arguments - a directory to start from, and a directory to copy to - which recursively moves all files under arg1 into arg2, renaming files with names that already exist in arg2. My suggestion is some higher level language such as perl or java. Note that this would be incredibly easy in Linux. Have fun!
- Attachments
-
- CopyFile.zip
- (182.6 KiB) Downloaded 219 times
Last edited by Kamikazee on Tue Mar 27, 2007 8:17 pm, edited 2 times in total.
The distance between insanity and genius is measured only by success
- Attachments
-
- CopyFile(vb).zip
- (1.06 MiB) Downloaded 211 times
Last edited by Kamikazee on Tue Mar 27, 2007 8:13 pm, edited 3 times in total.
The distance between insanity and genius is measured only by success
Return to “Spud n GURU's Tech Topics”
Who is online
Users browsing this forum: No registered users and 1 guest