© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•2y ago•
10 replies
t ' SVC

✅ I cant combine folder paths

I was trying to combine folder path with strings with that code

string ilce = duzenleIlce.Text;
string mahalle = duzenleMah.Text;
string ada = duzenleAda.Text;
string parsel = duzenleParsel.Text;
string islem = duzenleIslemCombo.Text;
string klasorAdi = string.IsNullOrEmpty(ada) ? parsel : ada + "_" + parsel;
string baseFolderPath = Settings1.Default.settingsFolderPath + "\\LIHKAB_3100-800\\";

string folderPath = Path.Combine(baseFolderPath, ilce, mahalle, klasorAdi);
string ilce = duzenleIlce.Text;
string mahalle = duzenleMah.Text;
string ada = duzenleAda.Text;
string parsel = duzenleParsel.Text;
string islem = duzenleIslemCombo.Text;
string klasorAdi = string.IsNullOrEmpty(ada) ? parsel : ada + "_" + parsel;
string baseFolderPath = Settings1.Default.settingsFolderPath + "\\LIHKAB_3100-800\\";

string folderPath = Path.Combine(baseFolderPath, ilce, mahalle, klasorAdi);

But when i click the button, baseFolderPath is still use same path, i need to combine "ilce, mahalle,klasorAdi" strings to reach my folder path. How can i make?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Path.Combine to folder behind
C#CC# / help
4y ago
✅ My solution contains absolute paths to projects inside the solution folder
C#CC# / help
3y ago
✅ Lazily combine sets
C#CC# / help
3y ago
LInq Combine duplicates
C#CC# / help
3y ago