VB
An object-oriented programming language developed by Microsoft that is implemented on the .NET Framework. Previously known as Visual Basic .NET.
2,579 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Can someone help me how to skip system volume information with this code?
string[] originalFiles = Directory.GetFiles(sourcePath, "*", SearchOption.AllDirectories);
logFile.Add("Begin SyncDrive backup procedure.");
Array.ForEach(originalFiles, (originalFileLocation) =>
{
FileInfo originalFile = new FileInfo(originalFileLocation);
FileInfo destFile = new FileInfo(originalFileLocation.Replace(sourcePath, destPath));
if (destFile.Exists)
{
if (originalFile.Length != destFile.Length || originalFile.LastWriteTime != destFile.LastWriteTime)
{
count++;
}
}
else
{
count++;
}
});
See old threads like : Directory.getfiles gives me access denied