Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Microsoft.Win32;
- using System.IO;
- namespace ConsoleApplication6
- {
- class Program
- {
- static void Main(string[] args)
- {
- RegistryKey hklm = Registry.LocalMachine;
- RegistryKey hksf = hklm.OpenSubKey("SOFTWARE");
- RegistryKey hkvl = hksf.OpenSubKey("Valve\Steam");
- object readypath = hkvl.GetValue("InstallPath");
- readypath.ToString();
- hkvl.Close();
- Console.WriteLine(readypath);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement