外挂一个.net 写的console程序,通过多线程打开SqlDbx.exe程序,不用去对原始文件做修改。
我使用的是 SqlDbx3.65版本,其他版本只要是personal的版本应该问题不大的。
程序源代码如下
int amount = 0;
int.TryParse(ConfigurationManager.AppSettings[“OpenAmount”], out amount);
for (int i = 0; i < amount; i++)
{
new Thread(new ThreadStart(Open)).Start();
}
static void Open()
{
string fileName = ConfigurationManager.AppSettings[“AppName”];
if (fileName != “”)
{
Process process = Process.Start(new ProcessStartInfo(fileName));
}
else
{
Console.WriteLine(“空的文件名你开个毛线啊。”);
}
}
编译好的文件见附件,替换到SqlDbx目录,运行OpenFileMultiThread.exe就好了,附件中OpenFileMultiThread.exe.config可以修改文件名和打开的SqlDbx的数量。
附件