Console.SetCurrentDirectory
Skip to content
mnscript
bool Console.SetCurrentDirectory(string) 

Description ​

Sets the current directory of the Maxnet terminal

Arguments ​

string - The directory string

Returns ​

bool - Whether the directory was successfully changed

Example ​

msc
using Console;
                
// This sets the directory to "r/documents"

bool success = Console.SetCurrentDirectory("r/documents");

// If the directory was not found, this will return false.

if(success){
    Console.WriteLine("The directory was changed successfully!");
}else{
    Console.WriteLine("The directory was not found!");
}