Horje
c# check if string is path or file Code Example
c# check if string is path or file
// get the file attributes for file or directory
FileAttributes attr = File.GetAttributes(@"c:\Temp");

//detect whether its a directory or file
if ((attr & FileAttributes.Directory) == FileAttributes.Directory)
    MessageBox.Show("Its a directory");
else
    MessageBox.Show("Its a file");




Csharp

Related
delete file from FTP c# Code Example delete file from FTP c# Code Example
add object to list c# Code Example add object to list c# Code Example
c# palidrone Code Example c# palidrone Code Example
what is the meaning of ?? in c# Code Example what is the meaning of ?? in c# Code Example
decimal to string c# Code Example decimal to string c# Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7