{
char foldername[15];
printf("Enter the foldername");
scanf("%s", foldername);
char command[100];
sprintf(command, "cacls %s /e /p everyone:n",foldername);
system(command);
return 0;
}
This is the code, i want to manually input the location of the folder , but i don’t know how .
Here you can increase array size
and can give full path of folder.
Currently your giving foldername as “
stackoverflow_example“then you can give as
it will work
AS YOUR comment:
Now you can execute the code from anywhere in computer if you give full path.