Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Post New Thread Reply

Register GFY Rules Calendar Mark Forums Read
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 02-16-2005, 05:15 AM   #1
nickjcuk
Registered User
 
Join Date: Feb 2004
Posts: 72
Make folders out of filenames?

Im looking for some software that can do this.

Basically i have a big folder full of movies that I want putting in folders (with the same name as the file)

Doing this manually is a headache... Is there any software out there that would save me this time?

Many Thanks!
nickjcuk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-16-2005, 05:56 AM   #2
nibbi
Confirmed User
 
Join Date: Sep 2002
Location: Nashville, TN
Posts: 104
I have a tool that will do what you are looking for. I have to take the kids to school, but will upload it someplace for you to get it when I get back.
__________________
http://www.xRag.com
nibbi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-16-2005, 06:07 AM   #3
broke
Confirmed User
 
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
On *nix boxes with php you could run the following code from a php file in the folder assuming the folder permissions are set correctly.

This code is based on all the file names having three letter extentions and just lops four characters off the end of the filenames to create the folders. It also does not delete the files from the directory from which they are copied.



PHP Code:

<?php

// On *nix boxes this is the full directory path  

$directory "/complete/path/to/directory/";

if (
is_dir($directory)) {

   if (
$contents opendir($directory)) {

       while ((
$file readdir($contents)) !hahahaha false) {

           if(
is_file($file)) {

        
mkdirsubstr($directory $file0, -4) , 0755 );
        
copy$directory $file substr($directory $file0, -4) . "/" $file);

       }

       }

       
closedir($contents);
   }
}

?>
The hahaha should actually be two equals signs.
broke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-16-2005, 06:21 AM   #4
nibbi
Confirmed User
 
Join Date: Sep 2002
Location: Nashville, TN
Posts: 104
Here you go:

http://www.nibbi.net/scripts/downloads/filesort1.2.zip

Pretty straight forward to use. Drag and drop a directory onto the app window, select the min number of chars to match, select min number of files that should be in a group (in your case 1) and then press OK. It will process all files within the directory you selected and will create a folder for each 'group' of files and move them into the folder.

Once the process is done, you will be shown a list of all folders that were created. You can drag and drop folders into each other in this list to combine two or more folders.

Play with it and see if it will suite your needs. You might want to try working with a small number of files first, as you can't undo the move.
__________________
http://www.xRag.com
nibbi is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-16-2005, 06:33 AM   #5
nickjcuk
Registered User
 
Join Date: Feb 2004
Posts: 72
Thanks for the help.

That software worked ok, but the file matching options kept mucking everything up

Looks like im gonna have to carry on by hand

Thanks anyway
nickjcuk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-16-2005, 06:34 AM   #6
broke
Confirmed User
 
Join Date: Aug 2003
Location: Someplace Windy
Posts: 4,501
Are you working on a windows box?
broke is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 02-16-2005, 06:53 AM   #7
nickjcuk
Registered User
 
Join Date: Feb 2004
Posts: 72
windows, yup
nickjcuk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks
Thread Tools



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.