cd command in shell application

Hola.

I'm making an application that manages and executes commands unix shell does. The program can execute single commands except the cd. The commands are executed with execvp and it seems that the problem must be with this function and the current working directory.

Could someone help me?

Thanks.

cd is a command that absolutely must be a shell builtin. No other process can change your shell's current directory for you, it has to make the system call itself. See man 2 chdir.