#include<stdio.h>
main()
{
char path[]="\"set path=C:\\Program Files\\WinRAR\""; //the extension I want to path
system(path); //the command
system("UnRAR x filename.rar");
}
OUTPUT
'UnRAR' is not recognized as an internal or external command,
operable program or batch file.
it works when i try it myself in cmd