A question about changing directory

Good day.

I need some information adout changing the working directory.
In other words I need analog of “cd” comand at linux.
When I start the root session I need to change current working directory (Directory means folder, without any TFiles related to). For example, I just want to write smth like “cd ./CurrentDirectory/OtherDirectory” and make “OtherDirectory” my “./”

Thanks a lot, Nikita.

Hi Nikita,

Use gSystem->cd() or gSystem->ChangeDirectory(). See the TSystem:cd() and TSystem:ChangeDirectory() documentation.

Cheers, Bertrand.