May 21, 2024, 08:43:55 AM

News:

Own IWBasic 2.x ? -----> Get your free upgrade to 3.x now.........


DeleteDir..

Started by ExMember001, August 03, 2006, 09:02:36 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ExMember001

is there a way to delete a dir with deletefile() or i need to use api for the moment?

J B Wood (Zumwalt)

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.

Ionic Wind Support Team

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);

Ionic Wind Support Team

ExMember001

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 ;)