Advertisement
Guest User

Untitled

a guest
May 5th, 2015
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using Microsoft.Win32;
  6. using System.IO;
  7.  
  8. namespace ConsoleApplication6
  9. {
  10. class Program
  11. {
  12. static void Main(string[] args)
  13. {
  14. RegistryKey hklm = Registry.LocalMachine;
  15. RegistryKey hksf = hklm.OpenSubKey("SOFTWARE");
  16. RegistryKey hkvl = hksf.OpenSubKey("Valve\Steam");
  17. object readypath = hkvl.GetValue("InstallPath");
  18. readypath.ToString();
  19. hkvl.Close();
  20. Console.WriteLine(readypath);
  21.  
  22.  
  23. }
  24. }
  25.  
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement