๐จ๐ผ๐ป๊ฐ๋ฐ/C#
C# - ๋ค๋ฅธ ํ๋ก๊ทธ๋จ ์คํ ์ํค๊ธฐ(Porcess.Start) with ์์ ๊ฒฝ๋ก ์ง์
Janger
2022. 8. 28. 15:01
728x90
์์
ํ ์ค๋ก ํ๋ก๊ทธ๋จ ์คํ์ํค๊ธฐ
System.Diagnostics.Process.Start(".\\Agents\\MCROAgent" + idx.ToString() + "\\clicker.exe");
ํ๋ก๊ทธ๋จ ์์ ๊ฒฝ๋ก ๋ฑ ๋ค์ํ ์ต์ ์ค์
Process process = new Process();
process.StartInfo.WorkingDirectory = "Agents\\MCROAgent" + idx.ToString(); // ์์ ๊ฒฝ๋ก
process.StartInfo.FileName = "clicker.exe"; // ํ์ผ ์ด๋ฆ
process.Start();
* ํ๋ก๊ทธ๋จ์ ํด๋ ๋ด์์ ์คํ์์ผ์ผ๋ง ํ ๊ฒฝ์ฐ
์ถ์ฒ:
https://heon-dev.tistory.com/7
Process.Start() ํจ์๋ก Windows App ์คํํ๊ธฐ
Unity ์์ง์์ Windows App์ ์คํํ๋ ์ฒ๋ฆฌ๋ฅผ ๊ตฌํํ๋ ๋ด์ฉ. Windows App ์ค ๊ทธ๋ฆผํ 3D ( Paint 3D )๋ฅผ ์คํํ๊ธฐ ์ํด์ ๋จผ์ ๊ทธ๋ฆผํ 3D์ exe ํ์ผ์ ์ด๋ฆ์ ์์๋๋ค. ๊ทธ๋ฆผํ 3D๊ฐ ์คํ ์ค์ผ ๋ ์์ ๊ด๋ฆฌ
heon-dev.tistory.com
728x90