Subj : Re: How to execute a shell command To : borland.public.cpp.borlandcpp From : "Siemel Naran" Date : Sun Feb 01 2004 10:54 pm "Ed Mulroy [TeamB]" wrote: > string command("dir h*.txt"); > system(command.c_str()); Thanks for the help. I tried the command but ran into two problems. First, system does not respond to the cd command. string command("cd .."); system(command.c_str()); But GetCurrentDir() returns the same value before and after the system command. The system command does not always respond to the new text color. textcolor(YELLOW); cprintf("dir"); textcolor(LIGHTCYAN); cprintf("\r\n"); system("dir"); The last command executes in the color YELLOW, but it should execute in the color LIGHTCYAN. Thanks. .