I cant empty my recycle bin using c program it gives a "file path not specified" error. It works perfectly when i past the command in the command prompt but not in the c program. Even tried running visual studio in administrator mode.
int BinFiles()
{
char folderCommand[]= "rd /s %systemdrive%\$Recycle.bin";
system(folderCommand);
return 0;
}