IonicWind Software

Aurora Compiler => General Discussion => Topic started by: ExMember001 on August 03, 2006, 09:02:36 PM

Title: DeleteDir..
Post by: ExMember001 on August 03, 2006, 09:02:36 PM
is there a way to delete a dir with deletefile() or i need to use api for the moment?
Title: Re: DeleteDir..
Post by: J B Wood (Zumwalt) on August 04, 2006, 09:12:41 AM
I wouldn't suggest doing it under any circumstances programatically.
This is what your installshield should be used for. Like INNO Setup.
http://innosetup.com/isinfo.php

Sorry but this is one type of code I don't give out, it can be construde as milicious, even in the best of intent.
Title: Re: DeleteDir..
Post by: Ionic Wind Support Team on August 04, 2006, 09:32:38 AM
There are many reasons you want to delete a directory, especially if your program created it.

You have to delete all the files in the directory first and then call the API function RemoveDirectoryA.

import int RemoveDirectoryA(string lpPathName);

Title: Re: DeleteDir..
Post by: ExMember001 on August 04, 2006, 11:53:06 AM
Quote from: zumwalt on August 04, 2006, 09:12:41 AM
I wouldn't suggest doing it under any circumstances programatically.
This is what your installshield should be used for. Like INNO Setup.
http://innosetup.com/isinfo.php

Sorry but this is one type of code I don't give out, it can be construde as milicious, even in the best of intent.


hehehe :)
well, depend on your intentions ... my program see directories as books, the files in them are interpreted as recipies ;)
so if i want to delete a book i have to delete a directory ...

thanx Paul ;)