F
F
foxlye2019-07-18 20:12:19
C++ / C#
foxlye, 2019-07-18 20:12:19

How to go to the folder above?

I have a fpath variable, it indicates the path from where the program is launched, there are enough folders there.
How do I go up one folder.
Let's say the folder with the program is called Start.
I need to get the path to the folder that contains the same Start folder.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
W
Wundarshular, 2019-07-18
@foxlye

Look at the System.IO.Directory.GetParent() method;

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question