I am using the command in my code to retrieve my drive types:

"string[] drives = Directory.GetLogicalDrives();"

and I get the error:

C:\Documents and Settings\Robert W. Lipscomb\My Documents\Visual Studio Projects\WindowsApplication1\DirTree.cs(8): The type or namespace name 'Scripting' could not be found (are you missing a using directive or an assembly reference?)

I am inserted the "using Scripting;" at the top of my code with the others, but it will not work.

instead of scripting, try

using System.IO;
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.