DeleteDir with temp in %appdata%
I need some help.
When i installing new version of application, i need to delete temp(from older app) from C:\users\[user_name]\appdata\roaming\[company_name]\temp
I tried this, but its not working.
#define TEMP_DIR "%appdata%\\[complany_name]\\temp"
export prototype TempDelete(HWND);
if (DeleteDir (TEMP_DIR, ALLCONTENTS) = 0) then
MessageBox ("TEMP_DIR + " was deleted.", INFORMATION")
MessageBox ("Unable to delete directory.", SEVERE)
Can you tell me what i do wrong?
Thank you! :-)
Tags for this Thread