Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Possible Windows BUG found, need help!

saharovmsaharovm Posts: 8Member
Hello, world!

I got a VERY STRANGE PROBLEM, possibly it's another WINDOWS BUG. Here it is.
I wrote a DOS program which automatically renames the files using a constant
pattern and an incrementing index number, e.g. FILE0000.EXT, FILE0001.EXT and
so on. File searching is done thru findfirst()..findnext() cycle.

Under DOS all's OK, but under Win9x/2000 my program tries to rename files
which were ALREADY RENAMED! I found a rather stupid solution to prevent this
(remember 1st renamed file name, then if it found again, skip it), but it
doesn't work for Win32 version. I suppose that Windows disk caching isn't
a cause (I've tried a buffer flush between renames), but I'm not sure.

Well, I don't know is it Windows or my own bug :-), but couldn't you help
me, if you know why this happens?

Mike Saharov,


Sign In or Register to comment.