WindowsDirectory?

P

perspolis

Hi all
How can I get path of WindowsDirectory without using GetWindowsDirectory
API??
and a method like ShellExecute API to open files in C#??
 
C

Carlos J. Quintero [.NET MVP]

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
 
P

perspolis

thx very much
Carlos J. Quintero said:
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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top