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);
}
}
}
}
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);
}
}
}
}
Copyright © 2026, NextGenUpdate.
All Rights Reserved.