🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3208

Re: List Files

#3208
From: Renan
Date: Sat, 29 Jul 2006 21:30
43 lines
2092 bytes
Yes is going to be an algorithm. For example:

1 - Series S01E03 Pilot DVDRip.XviD-WAT.avi

Series is the name of the serie
S01 means Season 01
E03 episode 3
Pilot  is the name of the episode
DVDRip.XviD-WAT - format of video and person who did it.

all files changes the name of episodes and number of episode.
Some files are not from the same person.
Sometimes S01 became S02... S020.
My algorithm have to do like this

Series S01E01 Pilot1 DVDRip.XviD-WAT.avi
Series S01E01 Pilot1 DVDRip.XviD-WAT.srt
Series S01E02 Pilot2 DVDRip.XviD-WAT.avi
Series S01E02 Pilot2 DVDRip.XviD-WAT.srt
Series S01E03 Pilot3 DVDRip.XviD-WAT.avi
Series S01E03 Pilot3 DVDRip.XviD-WAT.srt

...

Thanks
   Renan

>You can use VCL for that: Place a TOpenDialog on your form, set
>its Option ofAllowMultiSelect, place a TStringGrid on the form, 
>too and do as follows:
>
>  if(OpenDialog1->Execute())
>  {
>    StringGrid1->RowCount = OpenDialog1->Files->Count;
>    StringGrid1->Cols[0] = OpenDialog1->Files;
>  }
>
>Then let the user rename the files. (Or do you want to rename 
>them by an algorithm? Then you wouldn't even need the grid).
>
>If you want to display filenames without paths in the grid, look
>for ExtractFileName().
Technical Details
Message-ID: <44cbd362$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <44c97103$1@newsgroups.borland.com> <44c9b8d0$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,fe8a549e850bf32c
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Renan" <gulbrrs@gmail.com>
Sender: "Renan" <gulbrrs@gmail.com>
Reply-To: "Renan" <gulbrrs@gmail.com>
Subject: Re: List Files
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 200.176.21.162     
References:  <44c97103$1@newsgroups.borland.com> <44c9b8d0$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <44cbd362$1@newsgroups.borland.com>
Date: 29 Jul 2006 14:30:10 -0700
X-Trace: newsgroups.borland.com 1154208610 207.105.83.66 (29 Jul 2006 14:30:10 -0700)
Lines: 44
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail