User forums > General (but related to Code::Blocks)

Open dialog

<< < (2/2)

grv575:
#include <iostream>

int main()
{
   std::cout << "Hello world!" << std::endl;
   system("folder\\notepad.exe");
   return 0;
}

directory structure:
c:\test
   console.exe
c:\test\folder
   notepad.exe

and then ran console.exe and it works.

MikeR:
Thankyou. :)
I tried it, but had to move the exe to the root folder to make it work. I'll keep playing with it becouse I know I really don't need it there. It is working tho. Many many thanks.

Edit to add: Fixed and working properly. Thanks.

Navigation

[0] Message Index

[*] Previous page

Go to full version