Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialKenneth Hansen
2,577 PointsCommand not found ??
I am using Windows and when i write the command Program.exe.
It write "bash: Program.exe: Command not found."
Who do i run the program ??
3 Answers
Steven Parker
231,269 PointsIt sounds like you're using a workspace, not your local (Window) system.
And in that case, you probably compiled your program using mcs. Anything compiled that way can be executed using the mono runtime system. So the command to start it would be:
mono Program.exe
Kenneth Hansen
2,577 PointsOh... and then is works.
thanks Steven.
steeve Francois
Courses Plus Student 572 PointsI have that same problem I cannot get it to work
Kenneth Hansen
2,577 PointsJust type as Steven write "mono Program.exe" it worked for me. Remember to save befor running it in your console.