Post: C# get all games names
07-05-2014, 01:38 PM #1
ImEraz_
Do a barrel roll!
(adsbygoogle = window.adsbygoogle || []).push({}); Yo guys i look for a way to get all the games names that my hdd contains in c#
Thanks for your help and sorry for my bad english
(adsbygoogle = window.adsbygoogle || []).push({});
07-05-2014, 05:00 PM #2
Originally posted by ImEraz
Yo guys i look for a way to get all the games names that my hdd contains in c#
Thanks for your help and sorry for my bad english


In C#, I would start off by using an FTPRequest or something along those lines. Then get the folders list from dev_hdd0/GAMES or dev_hdd0/GAMEZ. It helps to research :y:
07-05-2014, 05:14 PM #3
ImEraz_
Do a barrel roll!
Originally posted by YouViolateMe View Post
In C#, I would start off by using an FTPRequest or something along those lines. Then get the folders list from dev_hdd0/GAMES or dev_hdd0/GAMEZ. It helps to research :y:

Thanks for your answer i have already thinks about things like this but its not so easy to get the folder names in a ftp
07-05-2014, 05:21 PM #4
Originally posted by ImEraz
Thanks for your answer i have already thinks about things like this but its not so easy to get the folder names in a ftp


This is possible.
07-05-2014, 05:41 PM #5
ImEraz_
Do a barrel roll!
Originally posted by YouViolateMe View Post
This is possible.

You know how to do ?
07-05-2014, 05:59 PM #6
Originally posted by ImEraz
You know how to do ?


I just coded it in like 15 minutes :p
07-05-2014, 06:35 PM #7
ImEraz_
Do a barrel roll!
Originally posted by YouViolateMe View Post
I just coded it in like 15 minutes :p

So you can help me ? :3
I have succesful connect to my ps3, but now i don't know how to get the folders names
07-05-2014, 07:04 PM #8
Originally posted by ImEraz
So you can help me ? :3
I have succesful connect to my ps3, but now i don't know how to get the folders names


You'll need the ftplib.dll from here You must login or register to view this content.
Add it as a reference in your project, then add "using FtpLib;" at the top.

Here is the code to add:
    
private void test()
{
string IP = "";
using (FtpConnection ftp = new FtpConnection(IP, "", ""))
{

ftp.Open();
ftp.Login();

if (ftp.DirectoryExists("/dev_hdd0/GAMES"))
ftp.SetCurrentDirectory("/dev_hdd0/GAMES");

foreach (var dir in ftp.GetDirectories("/dev_hdd0/GAMES"))
{
if (dir.Name.Length > 4)
{
string s = dir.Name;
int start = s.IndexOf("[") + 1;
int end = s.IndexOf("]", start);
string result = s.Substring(start, end - start);
MessageBox.Show(result);
}
}
}
}


Just call by test();

The following user thanked Taylors Bish for this useful post:

ImEraz_
07-05-2014, 07:12 PM #9
looking to see you make a tool like that bro Smile
07-05-2014, 07:29 PM #10
ImEraz_
Do a barrel roll!
Originally posted by YouViolateMe View Post
You'll need the ftplib.dll from here You must login or register to view this content.
Add it as a reference in your project, then add "using FtpLib;" at the top.

Here is the code to add:
    
private void test()
{
string IP = "";
using (FtpConnection ftp = new FtpConnection(IP, "", ""))
{

ftp.Open();
ftp.Login();

if (ftp.DirectoryExists("/dev_hdd0/GAMES"))
ftp.SetCurrentDirectory("/dev_hdd0/GAMES");

foreach (var dir in ftp.GetDirectories("/dev_hdd0/GAMES"))
{
if (dir.Name.Length > 4)
{
string s = dir.Name;
int start = s.IndexOf("[") + 1;
int end = s.IndexOf("]", start);
string result = s.Substring(start, end - start);
MessageBox.Show(result);
}
}
}
}


Just call by test();

Thanks !
But i got an error : You must login or register to view this content.
In english "length can not be less than 0"

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo