๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
๐Ÿ‘จ๐Ÿผ‍๐Ÿ’ป๊ฐœ๋ฐœ/C#

C# - ๋‹ค๋ฅธ ํ”„๋กœ๊ทธ๋žจ ์‹คํ–‰ ์‹œํ‚ค๊ธฐ(Porcess.Start) with ์‹œ์ž‘ ๊ฒฝ๋กœ ์ง€์ •

by Janger 2022. 8. 28.
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
๋ฐ˜์‘ํ˜•