I've tried these options:
Option1:
Option2:
Option3:
But none of them works. Kindly help me to get through this.
Thanks in advance
Option1:
szDelPath = CommonAppDataFolder ^ "JetAdvice";
DeleteDir(szDelPath, ALLCONTENTS);
DeleteDir(szDelPath, ALLCONTENTS);
Option2:
szDelPath = CommonAppDataFolder ^ "JetAdvice";
ChangeDirectory("C:");
LongPathToShortPath(szDelPath);
DeleteDir(szDelPath, ALLCONTENTS);
ChangeDirectory("C:");
LongPathToShortPath(szDelPath);
DeleteDir(szDelPath, ALLCONTENTS);
Option3:
szDelPath = CommonAppDataFolder ^ "JetAdvice";
nResult = FindAllFiles( szDelPath, "*.*", szFilePath, RESET );
while ( 0 = nResult )
SetFileInfo( szFilePath, FILE_ATTRIBUTE, FILE_ATTR_NORMAL, "" );
nResult = FindAllFiles( szDelPath, "*.*", szFilePath, CONTINUE );
endwhile;
ChangeDirectory("C:");
LongPathToShortPath(szDelPath);
DeleteDir(szDelPath, ALLCONTENTS);
nResult = FindAllFiles( szDelPath, "*.*", szFilePath, RESET );
while ( 0 = nResult )
SetFileInfo( szFilePath, FILE_ATTRIBUTE, FILE_ATTR_NORMAL, "" );
nResult = FindAllFiles( szDelPath, "*.*", szFilePath, CONTINUE );
endwhile;
ChangeDirectory("C:");
LongPathToShortPath(szDelPath);
DeleteDir(szDelPath, ALLCONTENTS);
But none of them works. Kindly help me to get through this.
Thanks in advance