Closed RafCodes-del closed 11 months ago
System.IO.Directory.CreateDirectory("prgrms");
you need to use the full path
It works but when i try running the .iso file on VMware it shows that error.
Debug - With VS Launching or Visual Basic Running VMware *The VMware Session that runs after Building the solution Debug - Manual Launch - Without VS Launching VMware: Debug - Manual Launch - Without VS Launching VMware - Setup Command being ran - This time with Error Message:
Now with edited code: using System.IO; using System;
namespace LortOS.Commands { public static class SetupCommand { public static void Execute(ref string currentDirectory) { Console.WriteLine("Setting up LortOS...");
string prgrmsPath = System.IO.Path.Combine(currentDirectory, "prgrms");
if (!System.IO.Directory.Exists("0:\\prgrms"))
{
System.IO.Directory.CreateDirectory("0:\\prgrms");
Console.WriteLine("Created 'prgrms' folder. Setup Complete!");
}
}
}
} Still. shows that error
VMware Machine Specs:
But the code is working with VS launching the Debug ISO file! 1 Question: Is the problem with The Code or the Virtual Machine Specifications?
Area of Cosmos - What area of Cosmos are we dealing with?
Filesystem Folders.
Expected Behaviour - What do you think that should happen?
Normal os filesystem - will make folder
Actual Behaviour - What unexpectedly happens?
Reproduction - How did you get this error to appear?
using System.IO; using System;
namespace LortOS.Commands { public static class SetupCommand { public static void Execute(ref string currentDirectory) { Console.WriteLine("Setting up the LortOS...");
} my code. seperate from kernel.cs trying to make a folder
Version - Were you using the User Kit or Dev Kit? And what User Kit version or Dev Kit commit (Cosmos, IL2CPU, X#)?
i.. do not know what version i was running.
Edit: Debug Version works but when i run Debug .iso without VS it shows that error.