diff --git a/main.c b/main.c index 4d043aa..53a8d88 100644 --- a/main.c +++ b/main.c @@ -29,35 +29,6 @@ #include #include -// Removes a directory using the Windows shell -int shellRemoveDir(LPCTSTR dirPath){ - // Remove the directory - //printf("!! ATTEMPT TO REMOVE (%d) %s\\...\n", len, shortPath); - - // Append null to the end of the path - // Double null terminated path string - char dntps[strlen(dirPath) + 2]; - strcpy(dntps, dirPath); - strcat(dntps, "\\\0"); - - SHFILEOPSTRUCT dir = {0}; - dir.wFunc = FO_DELETE; - dir.pFrom = dntps; - dir.fFlags = FOF_NOCONFIRMATION | FOF_NOERRORUI; - dir.fAnyOperationsAborted = 0; - /*dir = { - NULL, - FO_DELETE, - dntps, - NULL, - FOF_NOCONFIRMATION | FOF_NOERRORUI, - 0, - 0, - "" - };*/ - return SHFileOperation(&dir); -} - // Prints the program license to the user. int printLicense(int full){ if (full == 0) {