Main.cs 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536
  1. /*
  2. * Copyright (c) Contributors, http://opensimulator.org/
  3. * See CONTRIBUTORS.TXT for a full list of copyright holders.
  4. *
  5. * Redistribution and use in source and binary forms, with or without
  6. * modification, are permitted provided that the following conditions are met:
  7. * * Redistributions of source code must retain the above copyright
  8. * notice, this list of conditions and the following disclaimer.
  9. * * Redistributions in binary form must reproduce the above copyright
  10. * notice, this list of conditions and the following disclaimer in the
  11. * documentation and/or other materials provided with the distribution.
  12. * * Neither the name of the OpenSim Project nor the
  13. * names of its contributors may be used to endorse or promote products
  14. * derived from this software without specific prior written permission.
  15. *
  16. * THIS SOFTWARE IS PROVIDED BY THE DEVELOPERS ``AS IS'' AND ANY
  17. * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
  18. * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
  19. * DISCLAIMED. IN NO EVENT SHALL THE CONTRIBUTORS BE LIABLE FOR ANY
  20. * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
  21. * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
  22. * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  23. * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  24. * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  25. * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  26. */
  27. using System;
  28. using System.Collections.Generic;
  29. using System.ComponentModel;
  30. using System.Data;
  31. using System.Drawing;
  32. using System.Text;
  33. using System.Windows.Forms;
  34. namespace OpenSim.GUI
  35. {
  36. public partial class Main : Form
  37. {
  38. public ProcessManager proc_OpenSim;
  39. public ProcessManager proc_UserServer;
  40. public ProcessManager proc_GridServer;
  41. public ProcessManager proc_AssetServer;
  42. public Main()
  43. {
  44. InitializeComponent();
  45. }
  46. private void Main_Load(object sender, EventArgs e)
  47. {
  48. txtInputUserServer.KeyPress += new KeyPressEventHandler(txtInputUserServer_KeyPress);
  49. txtInputGridServer.KeyPress += new KeyPressEventHandler(txtInputGridServer_KeyPress);
  50. txtInputAssetServer.KeyPress += new KeyPressEventHandler(txtInputAssetServer_KeyPress);
  51. txtInputRegionServer.KeyPress += new KeyPressEventHandler(txtInputRegionServer_KeyPress);
  52. tabLogs.Selected += new TabControlEventHandler(tabLogs_Selected);
  53. UpdateTabVisibility();
  54. }
  55. void tabLogs_Selected(object sender, TabControlEventArgs e)
  56. {
  57. if (e.TabPage == tabUserServer)
  58. txtInputUserServer.Focus();
  59. if (e.TabPage == tabGridServer)
  60. txtInputGridServer.Focus();
  61. if (e.TabPage == tabAssetServer)
  62. txtInputAssetServer.Focus();
  63. if (e.TabPage == tabRegionServer)
  64. txtInputRegionServer.Focus();
  65. }
  66. void txtInputUserServer_KeyPress(object sender, KeyPressEventArgs e)
  67. {
  68. if (e.KeyChar == 13)
  69. {
  70. // We got a command
  71. e.Handled = true;
  72. proc_UserServer.StandardInput.WriteLine(txtInputUserServer.Text + "\r\n");
  73. txtInputUserServer.Text = "";
  74. }
  75. }
  76. void txtInputGridServer_KeyPress(object sender, KeyPressEventArgs e)
  77. {
  78. if (e.KeyChar == 13)
  79. {
  80. // We got a command
  81. e.Handled = true;
  82. proc_GridServer.StandardInput.WriteLine(txtInputGridServer.Text + "\r\n");
  83. txtInputGridServer.Text = "";
  84. }
  85. }
  86. void txtInputAssetServer_KeyPress(object sender, KeyPressEventArgs e)
  87. {
  88. if (e.KeyChar == 13)
  89. {
  90. // We got a command
  91. e.Handled = true;
  92. proc_AssetServer.StandardInput.WriteLine(txtInputAssetServer.Text + "\r\n");
  93. txtInputAssetServer.Text = "";
  94. }
  95. }
  96. void txtInputRegionServer_KeyPress(object sender, KeyPressEventArgs e)
  97. {
  98. if (e.KeyChar == 13)
  99. {
  100. // We got a command
  101. e.Handled = true;
  102. proc_OpenSim.StandardInput.WriteLine(txtInputRegionServer.Text + "\r\n");
  103. txtInputRegionServer.Text = "";
  104. }
  105. }
  106. private void btnStart_Click(object sender, EventArgs e)
  107. {
  108. noProbe1.Checked = true;
  109. multiple1.Checked = true;
  110. loginuri1.Checked = true;
  111. login1.Checked = true;
  112. //
  113. // THIS PART NEEDS TO BE MOVED TO A SEPARATE THREAD OR A TIMER OF SOME SORT
  114. // should not block on wait
  115. // ALSO - IF SOME SERVICES ARE NOT CONFIGURED, POP UP CONFIGURATION BOX FOR THAT SERVICE!
  116. //
  117. btnStart.Enabled = false;
  118. btnStop.Enabled = false;
  119. if (rbGridServer.Checked)
  120. {
  121. // Start UserServer
  122. proc_UserServer = new ProcessManager("OpenSim.Grid.UserServer.exe", "");
  123. txtMainLog.AppendText("Starting: User server" + "\r\n");
  124. proc_UserServer.OutputDataReceived += new System.Diagnostics.DataReceivedEventHandler(proc_UserServer_DataReceived);
  125. proc_UserServer.ErrorDataReceived += new System.Diagnostics.DataReceivedEventHandler(proc_UserServer_DataReceived);
  126. proc_UserServer.StartProcess();
  127. System.Threading.Thread.Sleep(3000);
  128. // Start GridServer
  129. proc_GridServer = new ProcessManager("OpenSim.Grid.GridServer.exe", "");
  130. txtMainLog.AppendText("Starting: Grid server" + "\r\n");
  131. proc_GridServer.OutputDataReceived += new System.Diagnostics.DataReceivedEventHandler(proc_GridServer_DataReceived);
  132. proc_GridServer.ErrorDataReceived += new System.Diagnostics.DataReceivedEventHandler(proc_GridServer_DataReceived);
  133. proc_GridServer.StartProcess();
  134. System.Threading.Thread.Sleep(3000);
  135. // Start AssetServer
  136. proc_AssetServer = new ProcessManager("OpenSim.Grid.AssetServer.exe", "");
  137. txtMainLog.AppendText("Starting: Asset server" + "\r\n");
  138. proc_AssetServer.OutputDataReceived += new System.Diagnostics.DataReceivedEventHandler(proc_AssetServer_DataReceived);
  139. proc_AssetServer.ErrorDataReceived += new System.Diagnostics.DataReceivedEventHandler(proc_AssetServer_DataReceived);
  140. proc_AssetServer.StartProcess();
  141. System.Threading.Thread.Sleep(3000);
  142. }
  143. // Start OpenSim
  144. string p = "";
  145. if (rbGridServer.Checked)
  146. p = "-gridmode=true";
  147. proc_OpenSim = new ProcessManager("OpenSim.EXE", p);
  148. txtMainLog.AppendText("Starting: OpenSim (Region server)" + "\r\n");
  149. proc_OpenSim.OutputDataReceived += new System.Diagnostics.DataReceivedEventHandler(proc_OpenSim_DataReceived);
  150. proc_OpenSim.ErrorDataReceived += new System.Diagnostics.DataReceivedEventHandler(proc_OpenSim_DataReceived);
  151. proc_OpenSim.StartProcess();
  152. btnStart.Enabled = false;
  153. btnStop.Enabled = true;
  154. }
  155. public delegate void AppendText(string Text);
  156. void proc_UserServer_DataReceived(object sender, System.Diagnostics.DataReceivedEventArgs e)
  157. {
  158. this.Invoke(new AppendText(txtUserServer.AppendText), new object[] { e.Data + "\r\n" });
  159. this.Invoke(new AppendText(txtMainLog.AppendText), new object[] { "UserServer: " + e.Data + "\r\n" });
  160. }
  161. void proc_GridServer_DataReceived(object sender, System.Diagnostics.DataReceivedEventArgs e)
  162. {
  163. this.Invoke(new AppendText(txtGridServer.AppendText), new object[] { e.Data + "\r\n" });
  164. this.Invoke(new AppendText(txtMainLog.AppendText), new object[] { "GridServer: " + e.Data + "\r\n" });
  165. }
  166. void proc_AssetServer_DataReceived(object sender, System.Diagnostics.DataReceivedEventArgs e)
  167. {
  168. this.Invoke(new AppendText(txtAssetServer.AppendText), new object[] { e.Data + "\r\n" });
  169. this.Invoke(new AppendText(txtMainLog.AppendText), new object[] { "AssetServer: " + e.Data + "\r\n" });
  170. }
  171. void proc_OpenSim_DataReceived(object sender, System.Diagnostics.DataReceivedEventArgs e)
  172. {
  173. this.Invoke(new AppendText(txtOpenSim.AppendText), new object[] { e.Data + "\r\n" });
  174. this.Invoke(new AppendText(txtMainLog.AppendText), new object[] { "OpenSim: " + e.Data + "\r\n" });
  175. }
  176. private void btnStop_Click(object sender, EventArgs e)
  177. {
  178. btnStart.Enabled = false;
  179. btnStop.Enabled = false;
  180. Stop();
  181. btnStart.Enabled = true;
  182. btnStop.Enabled = false;
  183. }
  184. private void clear1_Click(object sender, EventArgs e)
  185. {
  186. noProbe1.Checked = false; multiple1.Checked = false; loginuri1.Checked = false;
  187. noMultiple1.Checked = false; korean1.Checked = false; spanish1.Checked = false;
  188. ignorepixeldepth1.Checked = false; nothread1.Checked = false; safe1.Checked = false;
  189. noconsole1.Checked = false; log1.Checked = false; helperuri1.Checked = false;
  190. autologin1.Checked = false; dialog1.Checked = false; previous1.Checked = false;
  191. simple1.Checked = false; noinvlib1.Checked = false; noutc1.Checked = false;
  192. debugst1.Checked = false; local1.Checked = false; purge1.Checked = false;
  193. nofmod1.Checked = false; nosound1.Checked = false; noaudio1.Checked = false;
  194. url1.Checked = false; port1.Checked = false; drop1.Checked = false;
  195. inbw1.Checked = false; outbw1.Checked = false; settings1.Checked = false;
  196. logfile1.Checked = false; yield1.Checked = false; techTag1.Checked = false;
  197. quitAfter1.Checked = false; loginuri1.Checked = false; set1.Checked = false;
  198. errmask1.Checked = false; raw1.Checked = false; skin1.Checked = false;
  199. user1.Checked = false; login1.Checked = false;
  200. }
  201. private void Stop()
  202. {
  203. if (proc_UserServer != null)
  204. {
  205. txtMainLog.AppendText("Shutting down UserServer. CPU time used: " + proc_UserServer.TotalProcessorTime.ToString() + "\r\n");
  206. proc_UserServer.StopProcess();
  207. proc_UserServer = null;
  208. }
  209. if (proc_GridServer != null)
  210. {
  211. txtMainLog.AppendText("Shutting down GridServer. CPU time used: " + proc_GridServer.TotalProcessorTime.ToString() + "\r\n");
  212. proc_GridServer.StopProcess();
  213. proc_GridServer = null;
  214. }
  215. if (proc_AssetServer != null)
  216. {
  217. txtMainLog.AppendText("Shutting down AssetServer. CPU time used: " + proc_AssetServer.TotalProcessorTime.ToString() + "\r\n");
  218. proc_AssetServer.StopProcess();
  219. proc_AssetServer = null;
  220. }
  221. if (proc_OpenSim != null)
  222. {
  223. txtMainLog.AppendText("Shutting down OpenSim. CPU time used: " + proc_OpenSim.TotalProcessorTime.ToString() + "\r\n");
  224. proc_OpenSim.StopProcess();
  225. proc_OpenSim = null;
  226. }
  227. }
  228. private void UpdateTabVisibility()
  229. {
  230. if (rbStandAloneMode.Checked)
  231. {
  232. if (tabLogs.TabPages.Contains(tabUserServer))
  233. tabLogs.TabPages.Remove(tabUserServer);
  234. if (tabLogs.TabPages.Contains(tabGridServer))
  235. tabLogs.TabPages.Remove(tabGridServer);
  236. if (tabLogs.TabPages.Contains(tabAssetServer))
  237. tabLogs.TabPages.Remove(tabAssetServer);
  238. }
  239. else
  240. {
  241. if (!tabLogs.TabPages.Contains(tabUserServer))
  242. tabLogs.TabPages.Add(tabUserServer);
  243. if (!tabLogs.TabPages.Contains(tabGridServer))
  244. tabLogs.TabPages.Add(tabGridServer);
  245. if (!tabLogs.TabPages.Contains(tabAssetServer))
  246. tabLogs.TabPages.Add(tabAssetServer);
  247. }
  248. }
  249. private void rbStandAloneMode_CheckedChanged(object sender, EventArgs e)
  250. {
  251. UpdateTabVisibility();
  252. }
  253. private void rbGridRegionMode_CheckedChanged(object sender, EventArgs e)
  254. {
  255. UpdateTabVisibility();
  256. }
  257. private void rbGridServer_CheckedChanged(object sender, EventArgs e)
  258. {
  259. UpdateTabVisibility();
  260. }
  261. private int counter;
  262. private void Exit()
  263. {
  264. counter = 0;
  265. timer1.Interval = 600;
  266. timer1.Enabled = true;
  267. this.timer1.Tick += new System.EventHandler(this.timer1_Tick);
  268. }
  269. private void timer1_Tick(object sender, System.EventArgs e)
  270. {
  271. if (counter >= 10)
  272. {
  273. timer1.Enabled = false;
  274. counter = 0;
  275. Application.Exit();
  276. }
  277. else
  278. {
  279. counter = counter + 1;
  280. }
  281. }
  282. private void exitToolStripMenuItem_Click(object sender, EventArgs e)
  283. {
  284. if (proc_UserServer != null || proc_GridServer != null || proc_AssetServer != null || proc_OpenSim != null)
  285. {
  286. label6.Text = "Stopping server(s) and waiting to safely close..............";
  287. Stop();
  288. Exit();
  289. }
  290. else
  291. {
  292. Application.Exit();
  293. }
  294. }
  295. /// <summary>
  296. /// CLIENT SECTION
  297. /// </summary>
  298. string exeString;
  299. string exeArgs;
  300. string usrsvr;
  301. string error = "Reconsider your commandline choices, you have opposing values selected!";
  302. private void label6_Click(object sender, EventArgs e)
  303. {
  304. label6.Text = clientBox1.Text;
  305. }
  306. private void errorSwitches()
  307. {
  308. MessageBox.Show(error);
  309. label6.Text = error;
  310. }
  311. bool exists;
  312. private void Launch1_Click(object sender, EventArgs e)
  313. {
  314. if (exists = System.IO.File.Exists(clientBox1.Text + exeBox1.Text))
  315. {
  316. executeClient();
  317. }
  318. else
  319. {
  320. MessageBox.Show("FILE DOES NOT EXIST!!!");
  321. label6.Text = "FILE DOES NOT EXIST!!!";
  322. }
  323. }
  324. private void NATfix()
  325. {
  326. }
  327. private void executeClient()
  328. {
  329. label6.Text = "";
  330. exeArgs = "";
  331. exeString = clientBox1.Text;
  332. exeString = exeString += exeBox1.Text;
  333. if (multiple1.Checked == true && noMultiple1.Checked == true) errorSwitches();
  334. else if (korean1.Checked == true && spanish1.Checked == true) errorSwitches();
  335. else
  336. {
  337. if (noProbe1.Checked == true) exeArgs = exeArgs += " -noprobe";
  338. if (multiple1.Checked == true) exeArgs = exeArgs += " -multiple";
  339. if (noMultiple1.Checked == true) exeArgs = exeArgs += " -nomultiple";
  340. if (korean1.Checked == true) exeArgs = exeArgs += " -korean";
  341. if (spanish1.Checked == true) exeArgs = exeArgs += " -spanish";
  342. if (ignorepixeldepth1.Checked == true) exeArgs = exeArgs += " -ignorepixeldepth";
  343. if (nothread1.Checked == true) exeArgs = exeArgs += " -nothread";
  344. if (safe1.Checked == true) exeArgs = exeArgs += " -safe";
  345. if (noconsole1.Checked == true) exeArgs = exeArgs += " -noconsole";
  346. if (log1.Checked == true) exeArgs = exeArgs += " -log";
  347. if (helperuri1.Checked == true) exeArgs = exeArgs += " -helperuri";
  348. if (autologin1.Checked == true) exeArgs = exeArgs += " --autologin";
  349. if (dialog1.Checked == true) exeArgs = exeArgs += " -dialog";
  350. if (previous1.Checked == true) exeArgs = exeArgs += " -previous";
  351. if (simple1.Checked == true) exeArgs = exeArgs += " -simple";
  352. if (noinvlib1.Checked == true) exeArgs = exeArgs += " -noinvlib";
  353. if (noutc1.Checked == true) exeArgs = exeArgs += " -noutc";
  354. if (debugst1.Checked == true) exeArgs = exeArgs += " -debugst";
  355. if (local1.Checked == true) exeArgs = exeArgs += " -local";
  356. if (purge1.Checked == true) exeArgs = exeArgs += " -purge";
  357. if (nofmod1.Checked == true) exeArgs = exeArgs += " -nofmod";
  358. if (nosound1.Checked == true) exeArgs = exeArgs += " -nosound";
  359. if (noaudio1.Checked == true) exeArgs = exeArgs += " -noaudio";
  360. if (url1.Checked == true)
  361. {
  362. exeArgs = exeArgs += " -url ";
  363. exeArgs = exeArgs += simBox1.Text;
  364. }
  365. if (port1.Checked == true)
  366. {
  367. int aPort;
  368. aPort = Convert.ToInt32(portBox1.Text);
  369. if (aPort > 13050)
  370. {
  371. portBox1.Text = "13050";
  372. MessageBox.Show("Enter Usable port number, defaulting to 13050.");
  373. }
  374. if (aPort < 13000)
  375. {
  376. portBox1.Text = "13000";
  377. MessageBox.Show("Enter Usable port number, defaulting to 13000.");
  378. }
  379. else
  380. {
  381. }
  382. exeArgs = exeArgs += " -port ";
  383. exeArgs = exeArgs += portBox1.Text;
  384. }
  385. if (drop1.Checked == true)
  386. {
  387. int aPct;
  388. aPct = Convert.ToInt32(dropBox1.Text);
  389. if (aPct > 100)
  390. {
  391. dropBox1.Text = "100";
  392. MessageBox.Show("Enter Usable port number, defaulting to 100.");
  393. }
  394. if (aPct < 0)
  395. {
  396. dropBox1.Text = "0";
  397. MessageBox.Show("Enter Usable port number, defaulting to 0.");
  398. }
  399. else
  400. {
  401. }
  402. exeArgs = exeArgs += " -drop ";
  403. exeArgs = exeArgs += dropBox1.Text;
  404. }
  405. if (inbw1.Checked == true)
  406. {
  407. exeArgs = exeArgs += " -inbw ";
  408. exeArgs = exeArgs += inbwBox1.Text;
  409. }
  410. if (outbw1.Checked == true)
  411. {
  412. exeArgs = exeArgs += " -outbw ";
  413. exeArgs = exeArgs += outbwBox1.Text;
  414. }
  415. if (settings1.Checked == true)
  416. {
  417. exeArgs = exeArgs += " -settings ";
  418. exeArgs = exeArgs += settingsBox1.Text;
  419. }
  420. if (logfile1.Checked == true)
  421. {
  422. exeArgs = exeArgs += " -logfile ";
  423. exeArgs = exeArgs += logfileBox1.Text;
  424. }
  425. if (yield1.Checked == true)
  426. {
  427. exeArgs = exeArgs += " -yield ";
  428. exeArgs = exeArgs += yieldBox1.Text;
  429. }
  430. if (techTag1.Checked == true)
  431. {
  432. exeArgs = exeArgs += " -techtag ";
  433. exeArgs = exeArgs += techtagBox1.Text;
  434. }
  435. if (quitAfter1.Checked == true)
  436. {
  437. exeArgs = exeArgs += " -quitafter ";
  438. exeArgs = exeArgs += quitafterBox1.Text;
  439. }
  440. if (loginuri1.Checked == true)
  441. {
  442. exeArgs = exeArgs += " -loginuri ";
  443. exeArgs = exeArgs += loginuriBox1.Text;
  444. }
  445. if (set1.Checked == true)
  446. {
  447. exeArgs = exeArgs += " -set ";
  448. exeArgs = exeArgs += setBox1.Text;
  449. }
  450. if (errmask1.Checked == true)
  451. {
  452. exeArgs = exeArgs += " -errmask ";
  453. exeArgs = exeArgs += errmaskBox1.Text;
  454. }
  455. if (raw1.Checked == true)
  456. {
  457. exeArgs = exeArgs += " " + rawBox1.Text;
  458. }
  459. if (skin1.Checked == true)
  460. {
  461. bool exists;
  462. if (exists = System.IO.File.Exists(skinBox1.Text + "skin.xml"))
  463. {
  464. exeArgs = exeArgs += " -skin ";
  465. exeArgs = exeArgs += skinBox1.Text + "skin.xml";
  466. }
  467. else
  468. {
  469. MessageBox.Show("SKIN FILE DOES NOT EXIST AT SPECIFIED LOCATION!!!");
  470. skin1.Checked = false;
  471. executeClient();
  472. }
  473. }
  474. if (user1.Checked == true)
  475. {
  476. //find actual login urls
  477. if (comboBox1.Text == "agni") { usrsvr = " -user " + "--agni"; }
  478. if (comboBox1.Text == "colo") { usrsvr = " -user " + "--colo"; }
  479. if (comboBox1.Text == "dmz") { usrsvr = " -user " + "--dmz"; }
  480. if (comboBox1.Text == "durga") { usrsvr = " -user " + "--Durga"; }
  481. if (comboBox1.Text == "siva") { usrsvr = " -user " + "--siva"; }
  482. exeArgs = exeArgs += usrsvr;
  483. }
  484. if (login1.Checked == true)
  485. {
  486. exeArgs = exeArgs += " -login ";
  487. exeArgs = exeArgs += firstBox1.Text + " " + lastBox1.Text + " " + passBox1.Text;
  488. }
  489. label6.Text = exeString + exeArgs;
  490. System.Diagnostics.Process proc = new System.Diagnostics.Process();
  491. proc.StartInfo.FileName = exeString;
  492. proc.StartInfo.Arguments = exeArgs;
  493. proc.StartInfo.UseShellExecute = false;
  494. proc.StartInfo.RedirectStandardOutput = false;
  495. proc.StartInfo.WorkingDirectory = clientBox1.Text;
  496. proc.Start();
  497. }
  498. }
  499. }
  500. }