Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How do i perform Window commands?
#7
the thing with the system command is every time you run a new system () call it creates a new shell, so doing something like
Code:
int main ()
{
     system ("cd /D C:\\");
     system ("cd");
     system ("pause >nul");
}
instead of printing out C:\ for the second system call it would still print the working directory of the program.
Reply


Messages In This Thread
How do i perform Window commands? - by SylverTech - 10-15-2009, 01:58 PM
RE: How do i perform Window commands? - by Jimmyg22 - 10-20-2009, 03:28 PM
RE: How do i perform Window commands? - by MrD. - 10-22-2009, 11:35 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)