Answers for "how to check if this folder exists"

1

cmd check if folder exists or not

if exist yourfoldername\ (
  echo Yes 
) else (
  echo No
)
Posted by: Guest on August-26-2021
1

Check Directory Exist

//check directory exist
string directoryExistPath = @"C:\Users\Yogeshkumar Hadiya\Desktop\DirectoryHandling";
if (Directory.Exists(directoryExistPath))
{
    Console.WriteLine("Directory exist");
}
else
{
    Console.WriteLine("Directory not exist");
}
Posted by: Guest on December-13-2021

Code answers related to "how to check if this folder exists"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language