Jump to content

Calling .net/any Other Coding Guys


Recommended Posts

Posted

[quote name='GatisKandis' timestamp='1355877664' post='1302977080']
Steps:

1. Create a main folders and sub folders for instance; comedy, thriller etc etc.
2. Access the folder where the movie files are present and iterate through each movie file. For each movie file access the genre properties. I hope all the files have the genres.
3. While iterating through each file based on the genre that you get save it in the corresponding folder.

Are you able to access the properties of the file?

Copying some piece of my code that is little different if not the purpose.

[CODE]
//Create a new subfolder under the current active folder
string newPath = System.IO.Path.Combine(activeDir, "Set");
//For creating the folders
string[] files1 = System.IO.Directory.GetFiles(sourcePath2);
for (int i = 1; i <= 20; i++)
{
System.IO.Directory.CreateDirectory(newPath + i);
}
[/CODE]

piece of code to copy(you can move instead)
[CODE]
fileName = System.IO.Path.GetFileName(files1[icount - 1]);
targetinside = newPath + foldernamecount;
destFile = System.IO.Path.Combine(targetinside, fileName);
s = sourcePath2 + @"\" + fileName;
System.IO.File.Copy(s, destFile, true);
[/CODE]

enjoy...all the best
[/quote]



ila kaadu baa


every file ki genre set cheyyali....

example Forrest Gump movie vundanuko.... aaa movie name IMDB lo search chesi daani GENRE ni copy chesi... movie file ki property lo set cheyyali.....

Posted

[quote name='GatisKandis' timestamp='1355877664' post='1302977080']
Steps:

1. Create a main folders and sub folders for instance; comedy, thriller etc etc.
2. Access the folder where the movie files are present and iterate through each movie file. For each movie file access the genre properties. I hope all the files have the genres.
3. While iterating through each file based on the genre that you get save it in the corresponding folder.

Are you able to access the properties of the file?

Copying some piece of my code that is little different if not the purpose.

[CODE]
//Create a new subfolder under the current active folder
string newPath = System.IO.Path.Combine(activeDir, "Set");
//For creating the folders
string[] files1 = System.IO.Directory.GetFiles(sourcePath2);
for (int i = 1; i <= 20; i++)
{
System.IO.Directory.CreateDirectory(newPath + i);
}
[/CODE]

piece of code to copy(you can move instead)
[CODE]
fileName = System.IO.Path.GetFileName(files1[icount - 1]);
targetinside = newPath + foldernamecount;
destFile = System.IO.Path.Combine(targetinside, fileName);
s = sourcePath2 + @"\" + fileName;
System.IO.File.Copy(s, destFile, true);
[/CODE]

enjoy...all the best
[/quote]

gp

any idea of how to access properties of individual files .. ? tq ..

Posted

<bold> manual entry antunanva or it should be automatic ?
[quote name='lolliman' timestamp='1355878376' post='1302977190']



ila kaadu baa


every file ki genre set cheyyali....

example Forrest Gump movie vundanuko.... [b]aaa movie name IMDB lo search chesi daani GENRE ni copy chesi[/b]... movie file ki property lo set cheyyali.....
[/quote]

Posted

[quote name='lolliman' timestamp='1355878376' post='1302977190']



ila kaadu baa


every file ki genre set cheyyali....

example Forrest Gump movie vundanuko.... aaa movie name IMDB lo search chesi daani GENRE ni copy chesi... movie file ki property lo set cheyyali.....
[/quote]

oh ok ... then

if u hav an idea about firebug , use that to grab genre varible value on the page with javascript. Then aa genre value ni property lo set cheyyatam don hav an idea ... let me think ..

Posted

[quote name='GatisKandis' timestamp='1355878498' post='1302977202']
<bold> manual entry antunanva or it should be automatic ?
[/quote]

automatically baaa

Posted

[quote name='innovative' timestamp='1355878897' post='1302977239']

oh ok ... then

if u hav an idea about firebug , use that to grab genre varible value on the page with javascript. Then aa genre value ni property lo set cheyyatam don hav an idea ... let me think ..
[/quote]

firebug ante idea ledu....


neenu ila chestunnaa

1. using macro(VBA) copying all file names into .CSV file ( it takes less than 2 mins)
2. using imacro add-on searching each file name in the IMDB and paste it into .CSV file
3. ikkada VB or C# code vaadali file properties set cheyyadaniki using above .CSV file

Posted

use fileinfo class
[quote name='innovative' timestamp='1355878489' post='1302977201']
gp

any idea of how to access properties of individual files .. ? tq ..
[/quote]

Posted

1, 3 picha lyt ...

2: where you will search? there is no open repository to search for it...correct me
[quote name='lolliman' timestamp='1355880403' post='1302977366']

firebug ante idea ledu....


neenu ila chestunnaa

1. using macro(VBA) copying all file names into .CSV file ( it takes less than 2 mins)
2. using imacro [color=#ff0000][b]add-on searching each file name[/b][/color] in the IMDB and paste it into .CSV file
3. ikkada VB or C# code vaadali file properties set cheyyadaniki using above .CSV file
[/quote]

Posted

[quote name='GatisKandis' timestamp='1355880635' post='1302977383']
1, 3 picha lyt ...

2: where you will search? there is no open repository to search for it...correct me
[/quote]


2 step lo direct gaa IE lo imacro add-on install chesi input gaa .csv file isthe ade automatic(koncham code raayali) gaaa search chesi aa web page lo aa particular div lo copy chesi....... malli .csv loki paste cheyyali


idi almost ayipoyindi baaa kaani search chesthe multiple names vasthe problem vastundi.... once ayipoyaka code ikkada vesthaa

Posted

ante each movie name ki IE lo search chesi aa div lo variable value retrieve chestunda...wow never heard of...aa imarco source code untey ekada padeyi mama.....

each movie name tho IE lo search chesi retrieve chesi csv lo copy chesthey too costly...but let me think
[quote name='lolliman' timestamp='1355880993' post='1302977421']


2 step lo direct gaa IE lo imacro add-on install chesi input gaa .csv file isthe ade automatic(koncham code raayali) gaaa search chesi aa web page lo aa particular div lo copy chesi....... malli .csv loki paste cheyyali


idi almost ayipoyindi baaa kaani search chesthe multiple names vasthe problem vastundi.... once ayipoyaka code ikkada vesthaa
[/quote]

Posted

[quote name='GatisKandis' timestamp='1355881236' post='1302977451']
ante each movie name ki IE lo search chesi aa div lo variable value retrieve chestunda...wow never heard of...aa imarco source code untey ekada padeyi mama.....

each movie name tho IE lo search chesi retrieve chesi csv lo copy chesthey too costly...but let me think
[/quote]

anthakamundu ee imacro tho sfamming chesevanni.. automated reply isthu @3$% CITI_c$y CITI_c$y

yaa its takes 10-30 secs for each file....

Posted

[quote name='GatisKandis' timestamp='1355880509' post='1302977371']
use fileinfo class
[/quote]
but fileinfo class use chesthe only name,size n date attributes matrame kada vuntay .. but file extension how ?

file.getName method lo name of the file output with extension vasthadha ?

Posted

[quote name='lolliman' timestamp='1355880403' post='1302977366']

firebug ante idea ledu....


neenu ila chestunnaa

1. using macro(VBA) copying all file names into .CSV file ( it takes less than 2 mins)
2. using imacro add-on searching each file name in the IMDB and paste it into .CSV file
3. ikkada VB or C# code vaadali file properties set cheyyadaniki using above .CSV file
[/quote]
Oh ok ... firebug anedhi browser add-on .. web elements inspect cheyyataniki baga use avthadhi ..

VBA no idea re ..

Posted

[quote name='innovative' timestamp='1355882284' post='1302977533']
but fileinfo class use chesthe only name,size n date attributes matrame kada vuntay .. but file extension how ?

file.getName method lo name of the file output with extension vasthadha ?
[/quote]

raadanukunta..specify cheste tappa aa king of files raavanukunta ga

Posted

[quote name='lolliman' timestamp='1355880993' post='1302977421']


2 step lo direct gaa IE lo imacro add-on install chesi input gaa .csv file isthe ade automatic(koncham code raayali) gaaa search chesi aa web page lo aa particular div lo copy chesi....... malli .csv loki paste cheyyali


idi almost ayipoyindi baaa kaani search chesthe multiple names vasthe problem vastundi.... once ayipoyaka code ikkada vesthaa
[/quote]

awsome i should play with imacro sometime .. intresting .. !! Thanks

×
×
  • Create New...