You can use either System.Environment.GetEnvironmentVariable("Windir" ) or
parse System.Environment.SystemDirectory.
To open files you can use Process.Start(file)
--
Best regards,
Carlos J. Quintero
MZ-Tools: Productivity add-ins for Visual Studio .NET, VB6, VB5 and VBA
You can code, design and document much faster.
Free resources for add-in developers:
http://www.mztools.com
"perspolis" <re*****@hotmail.com> escribió en el mensaje
news:e9**************@TK2MSFTNGP10.phx.gbl...
Hi all
How can I get path of WindowsDirectory without using GetWindowsDirectory
API??
and a method like ShellExecute API to open files in C#??