How to Get System name through C#

Mittaikariss
Posted by Mittaikariss under C# category on | Points: 40 | Views : 2443
First using Namespace
using System.Security.Principal;


and then


Process.Start("C:\\Documents and Settings\\"+WindowsIdentity.GetCurrent().Name.Split('\\')[1]+ "\\My Documents\\Company Details.xls ");




Invom Technology
http://www.invomtech.com/

Comments or Responses

Login to post response