Flag for DeleteFile() and DeleteDirectory() to trully erase

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Flag for DeleteFile() and DeleteDirectory() to trully er

Post by PB »

> DeleteFile() and DeleteDirectory() functions do not delete file as it does
> when in windows is pushed SHIFT key and DELETE key at the same time

Yes they do. If they're not instantly deleting for you, then either Windows is
corrupt or you have another app that it intercepting the deletions.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Re: Flag for DeleteFile() and DeleteDirectory() to trully er

Post by Psychophanta »

PB wrote:> DeleteFile() and DeleteDirectory() functions do not delete file as it does
> when in windows is pushed SHIFT key and DELETE key at the same time

Yes they do. If they're not instantly deleting for you, then either Windows is
corrupt or you have another app that it intercepting the deletions.
No, they do not.
And they're indeed instantly deleting for me, so then my windows is supposely not corrupt and no app intercepting.
Read above before posting.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Post by djes »

I had so much strange behaviours with Windows that nothing can surprise me! One of them that my name contains a french letter (é), that wasn't recognised by the first "profiled" Windows, and after that by some programs. My main profile was always broken! Now, I'm always removing foreign characters.
In this case, I wonder if this has not something to do with security parameters? Also, I know by experience that there could be misc Windows installations, even if you're doing exactly the same things. Did your HD was *really* formatted before install? You have a spanish windows version, maybe some parameters are different?
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

If i buy a new pc with windows xp pro, or i install a clean new legal XP SP1 or SP2 pro spanish, and i make it to see hidden files, i clean all objects of the desktop (right clik on desktop->properties->desktop->customize desktop...) and for last thing i configure the trash to delete directly the files instead to send it to the trash; then i get the following:
when i delete a file (without holding SHIFT key) after switch on the PC there appears a hidden folder named Recycled in the root partition of the deleted file. The same happens with these PB functions. Notice that it happens only the first time the file is deleted after windows is booted.
If delete a file (while hold SHIFT key) after switch on the PC there happens nothing, i.e. normal behaviour.

EDIT: all it done without conect to web (for more safety and far of doubts).
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Fred
Administrator
Administrator
Posts: 18162
Joined: Fri May 17, 2002 4:39 pm
Location: France
Contact:

Post by Fred »

File a bug report on Microsoft web site then.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Fred wrote:File a bug report on Microsoft web site then.
Bah! Surely they already know it.
Vista has lots of much more serious bugs. One of them i come now to me is that when install any program it says it install to C:\Program files\... , but in a spanish version it is a lie, because it installs in C:\Archivos de programa\... , and folder C:\Program files\ not even exists.
That is what i call a bug as big as a planete :P

The other one is a flea, lets say.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Post by PB »

> when install any program it says it install to C:\Program files\... , but in a
> spanish version it is a lie, because it installs in C:\Archivos de programa\...
> and folder C:\Program files\ not even exists
> That is what i call a bug as big as a planete

That's not a Windows bug, it's the installer for the app using a hard-coded
path of "Program Files" instead of using the locale's name for the folder.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
djes
Addict
Addict
Posts: 1806
Joined: Sat Feb 19, 2005 2:46 pm
Location: Pas-de-Calais, France

Post by djes »

Yes, there's still a lot of localisation problems, and bad coders poking around (I'm one of them, sometimes!)
User avatar
Kaeru Gaman
Addict
Addict
Posts: 4826
Joined: Sun Mar 19, 2006 1:57 pm
Location: Germany

Post by Kaeru Gaman »

in the German version they solved it by renaming the folder "Programme" to "Program files"...

it's just that too much Amis are too dumb to realize that there is a world outside the US...
oh... and have a nice day.
User avatar
Psychophanta
Always Here
Always Here
Posts: 5153
Joined: Wed Jun 11, 2003 9:33 pm
Location: Anare
Contact:

Post by Psychophanta »

Sorry, but imho is a windows bug.
Another one is the description to go to see the installed programs and choose to uninstall, aka add or unninstall programs.
Another is the CD/DVD strange read protection (and it is not an antivirus), which sometimes you must wait about 1 hour to uncompress a 10 MB zip file directly from DVD to HD.
One of the major ones is the slowness for normal management.
And there are lots.
Vista is unusable, at least to me. I never installed it in my own PCs but have been with it and testing it.
http://www.zeitgeistmovie.com

while (world==business) world+=mafia;
Post Reply