[identity profile] hoffman-log.livejournal.com posting in [community profile] techrecovery
Here's my question. I doubt this command exists, but man would it be sweet...

I have some movie files. The file names are the names of the movies. I would like them to be in folders that have the same name as the file (without the extension). I've been creating new folders, renaming them, and then moving the files into the appropriate folders. This has become tiresome.

Is there a command or a program I can use instead to automate all this? Basically something to create folders of the same name, and move the files into those folders. Sounds like a nifty little batch file if somebody can script it. Hmmm.... maybe i'll start on that myself....

And thanks to everybody who helped w/ the auto-play question i had earlier!

_MaH

Date: 2003-04-10 08:18 pm (UTC)
From: (Anonymous)
if you were using a mac an apple script could be written in about 2 minutes to do that. pc.... dunno...

Date: 2003-04-10 08:33 pm (UTC)
From: [identity profile] kubap.livejournal.com
if you manually made the directories, you could make a batch file that did a directory listing and found all the directories, then did a selective copy to the directories...
file1
file2
file1partonewhooo1.mpg
file1parttwowheeee.mpg
file2partonewhoa.mpg
file2partthreeheyhey.mpg

get the file1 part
then do a XCOPY FILE1* FILE1 /I
and so on and so on for the other files....
i could do it in C++ but in batch it would be more time consuming...
( NOTE:
/I If destination does not exist and copying more than one file,
assumes that destination must be a directory.
)

Date: 2003-04-10 09:11 pm (UTC)
From: [identity profile] j-digi82.livejournal.com
Yeah, screw scripting.

w/ C++ it would be fairly simple.

Date: 2003-04-11 06:37 am (UTC)
From: [identity profile] thecrazyfinn.livejournal.com
You need ActiveState Perl and a copy of Learning Perl (From O'Reilly).

check out http://www.activestate.com Perl is a free download.

The write yourself a short Perl script.

Profile

techrecovery: (Default)
Elitist Computer Nerd Posse

April 2017

S M T W T F S
      1
2345678
91011121314 15
16171819202122
23242526272829
30      

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 19th, 2026 10:30 pm
Powered by Dreamwidth Studios