0

i have did like

   foreach(LogFile lf in db.Databases)
      Console.WriteLine(lf.FileName)

which displays the logfile path including extension.....My Problem is how to find the

Datafiles exact path including extension..Give me the Guidance

Any Help is Greatly Appreciated...

Thanks in Advance.

Mitch Wheat
  • 295,962
  • 43
  • 465
  • 541
Cute
  • 13,643
  • 36
  • 96
  • 112

1 Answers1

1
    foreach (FileGroup fg in database.FileGroups)
    {
        foreach (DataFile df in fg.Files)
        {
            Console.WriteLine(Path.Combine(database.PrimaryFilePath, df.Name);
        }
    }
Mitch Wheat
  • 295,962
  • 43
  • 465
  • 541