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
๋ฐ์ํ
'๐จ๐ผโ๐ป๊ฐ๋ฐ > C#' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
C# - setTimeout ๊ตฌํ (0) | 2022.08.28 |
---|---|
C# - ํ๋ก์ธ์ค ์ด๋ฆ์ผ๋ก ํ๋ก์ธ์ค ์ฃฝ์ด๊ธฐ(Process) (0) | 2022.08.28 |
C# - ํ๋ก๊ทธ๋จ ์ค๋ณต ์คํ ๋ฐฉ์งํ๊ธฐ (0) | 2022.08.26 |
C# - ๋ค๋ฅธ ํ๋ก์ธ์ค๋ผ๋ฆฌ ๋ฉ์์ง(string) ์ ๋ฌํ๊ธฐ(SendMessage) (0) | 2022.08.24 |
C# - ๋ค๋ฅธ ์์ฉํ๋ก๊ทธ๋จ์ ์ ์ดํด ๋ณด์. feat.SPY++ (1) | 2022.08.24 |