.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Interview Question >> ASP.Net >> Post New Question Subscribe to Interview Questions

How can we retrive all logical drives of a machine?

Posted By :nishithraj     Posted Date :March 31, 2010    Points :10   Category :ASP.Net 
Using the code System.IO.Directory.GetLogicalDrives();

You can also find related Interview Question to How can we retrive all logical drives of a machine?  below: 

What is Machine.config?

Machine configuration file: The machine. config file contains settings that apply to the entire computer. This file is located in the %runtime install path%Config directory. There is only one
machine. config file on a computer. The Machine.Config file found in the "CONFIG" subfolder of your .NET Framework install directory (c:WINNTMicrosoft.NETFramework{Version Number}CONFIG on Windows 2000 installations). The machine.config, which can be found in the directory $WINDIR$Microsoft.NETFrameworkv1.0.3705CONFIG, is an XML-formatted configuration file that specifies configuration options for the machine. This file contains, among many other XML elements, a browserCaps element. Inside this element are a number of other elements that specify parse rules for the various User-Agents, and what properties each of these parsings supports. (More...)

Is it possible to add multiple Machine.config file?

No, it is not possible to add more than 1 machine.config file. if we want to overwrite any setting than that can be achieve with the help of web.config. (More...)

What is logical link control?

It one of two sublayers of the data link layer of OSI reference model, as defined by the IEEE 802 standard.

This sublayer is responsible for maintaining the link between
computers when they are sending data across the physical network connection. (More...)

IEEE 802.3 Logical relationship with OSI Reference Model?

1. IEEE 802.3 physical layer corresponds to the OSI physical layer.

2. OSI data link layer is divided into two IEEE 802 sublayers .

(A). The Media Access Control (MAC) sublayer .

(B). The MAC-client sublayer . (More...)

How To retrive Duplicate Records when There is no Primary key in a Table?

select city_name
from areas
group by city_name

having count(*) > 1 (More...)

Web.Config vs Machine.config

Web.Config Files - It is used to maintain the all type of
configuration like that Database connection and Error log
configuration and also maintain the Authenticate of user
security of the web application

Machine.config - only one file was created in your
microsoft .net folder when you installed the microsoft
visual studio.
So, it is used to configuration for the particular server
machine. (More...)

How to create links to the mapped network drives?

Creating links to mapped drives in WSS v3 or MOSS 2007 can be done via
the new content type for .lnk files. (More...)

How to detect the operating system on the client machine in JavaScript?

The navigator.appVersion string should be used to find the name of the operating system on the client machine. The following code snippet returns the appropriate Operating systems.

var OSName="Unknown OS";
if (navigator.appVersion.indexOf("Win")!=-1) OSName="Windows";
if (navigator.appVersion.indexOf("Mac")!=-1) OSName="MacOS";
if (navigator.appVersion.indexOf("X11")!=-1) OSName="UNIX";
if (navigator.appVersion.indexOf("Linux")!=-1) OSName="Linux"; (More...)

What is the difference between "Web.config" and "Machine.Config" ?

Configuration files are used to control and manage the behavior of a web application.
1. Machine.config
2. Web.config


One Machine.config file is shared for all ASP.NET's Application. It is only one on the machine for each version of .NET Framework. If you apply anything in machine.config file then it is applied on all ASP.NET applications. Machine.config file is universal on the machine. It can be located in the %runtime install path%\Config directory.

1. This is automatically installed when you install .NET Framework or Visual Studio. Net.
2. This is also called machine level configuration file.
3. Only one machine.config file exists on a server/computer.
4. This file is at the highest level in the configuration hierarchy

Web.config file is only for particular ASP.NET application. each ASP.NET application has different file. One ASP.NET application can have more than one web.config file. But only one in one folder.

1. This is automatically created when you create an ASP.Net web application project.
2. This is also called application level configuration file or folder level configuration file.
3. This file inherits setting from the machine.config. If same setting key is defined in both Machine.Config and Web.config, the Web.Config setting is used.

Difference Between Machine.config and Web.config

Machine.config is automatically installed when you install .NET Framework or Visual Studio. Net.

Web.config is automatically created when you create an ASP.Net web application project.

Machine.config is called machine level configuration file. Only one machine.config file exists on a server.

Web.config is called application level configuration file.

Machine.config file is at the highest level in the configuration hierarchy.

Web.Config file inherits setting from the machine.config (More...)

Difference between Physical backup and Logical backup?

Physical backup : It helps to backing up the individual database object like view,stored procedure,table etc....It is very slow and recovery is not possible

Logical backup : It rely on the OS to make a copy of the physical files like data files,log files,control files that comprise the database. (More...)

Difference Between Machine.config and Web.config?

Machine.config->Configuration file for all the applications in the system.
Web.config->Config file for single application. (More...)

What is the difference between Machine.config and web.config?

The main difference between Machine.config and web.config is as follows:
Machine.config is machine level config file,means if you make any changes into this file, it will applicable for all application which exists on same machine.

While Web.config settings only applicable for application level.This file is best place to keep your connection string and SMTP like settings and so on. (More...)

Quick Links For Interview Questions Categories:
ASP.Net Windows Application   .NET Framework   C#   VB.Net   ADO.Net  
Sql Server   SharePoint   Silverlight   OOPs   JQuery   JavaScript/VBScript
Biztalk Patten/Practices .IIS WCF WPF WWF
Networking Aptitude Others   All      

Find questions, FAQ's and their answers related to .NET, C#, Vb.Net, Sql Server and many more.

Now you can find lots of .NET, C#, Vb.Net, SQL Server,Windows, ASP.Net related Questions and their Answers here at www.dotnetspark.com. Our aim is to help you pass your certification Exams (MCP, MCSD, MCAD etc.,) with flying scores and get good name in your company.

So, Start looking our Interview Question section daily and improve your .NET Skills. You can also help others by posting Interview Questions and their Answers in this section.

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend