Verification - WeOnlyDo Discussion board

Verification (General questions)

by schenkp, Friday, November 18, 2011, 18:04 (4565 days ago)

Is there a way to use this product to simple determine that the remote system you are connecting to is a Linux system. Can you please help me modify the code below to use this product to determine the above.


string testFile = @ C:Windows ;
private void button5_Click(object sender, EventArgs e)
{
Check_file_Existence(testFile);
}


private void Check_file_Existence(string sFileName)
{
try
{
if (Directory.Exists(sFileName) == true)
{
// return true;
MessageBox.Show( FILE EXIST );
}
else
{
// return false;
MessageBox.Show( FILE DOES NOT EXIST );
}
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
// return false;
}

}


Complete thread: