XBMC Community Forum  

Go Back   XBMC Community Forum > Announcements, Info and General Discussion > XBMC General Discussion

XBMC General Discussion General discussion about XBMC (but no support/help/feature requests)
Please, do not post support/help questions or requests here!

Reply
 
Thread Tools Search this Thread Display Modes
Old 2004-02-29, 13:21   #1
hederuiter
Junior Member
 
Join Date: Oct 2003
Posts: 3
hederuiter is on a distinguished road
Default

it copies the foldername.tbn to foldername/folder.jpg.

paste the code into an file, then chmod 755 filename. go to the dir where the tbn files are, call the script.

mayby not the best script but it works.
Quote:
#!/usr/bin/perl

$dir = ".";
opendir(dir, "$dir");
my @files = readdir(dir);
for $i (@files)
{
*if ($i =~ /.*\.tbn$/)
*{
* *$filename = $i;
* *$dirname = $i;
* *$filename =~ s/.*\.tbn$/folder\.jpg/i;
* *$dirname =~ s/\.tbn$//i;
* *$l = "\"";
* *$filename = $filename.$l;
* *$dirname = $l.$dirname."/";
* *$dest = $dirname.$filename;
* *$i = $l.$i.$l;
* *print "$dest\n";
* *unless (-e $j)
* *{
* * * `cp $i $dest`;
* *}
*}
}
hederuiter is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
request: File copy script mfennell Plugin/Script (Python) Help and Support 2 2006-08-02 16:00
Perl script I wrote dagretchen XBMC Development 2 2005-10-07 00:03
Hide .py extension in script folder Nuka1195 XBMC Feature Suggestions 4 2005-04-21 15:23
Copy from box to box Toxic XBMC for Xbox Specific Support 2 2005-04-21 04:48


All times are GMT +2. The time now is 15:35.


Protected by Akismet, We recommend WordPress blogs
Copyright © 2008, XBMC Project