Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Discussion / could you try this for me ?

Author
Message
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 16th Mar 2003 18:55
ok, heres a slightly adapted version of the db example for directory deletion :



the only change to it is I alterd the path of the dir from "mydir" to "C:\mydir" to make it easier to locate.

could you try this for me :

run the code, and with out closing DB, ( minimise it ), see if the directory is still on c drive, and can you delete it in windows ?

is there a bug in the comand ?
or is it just my pc ?
Marcus
23
Years of Service
User Offline
Joined: 16th Mar 2003
Location:
Posted: 16th Mar 2003 23:05
Hi,

there's no Bug in DB.

It is an Bug depending on Windows.

The DB Code is using the Directory if it is running this program and you can not delete folders that are use by a program.

At First you have to close the program and then you can delete the folder.

Don't ask me why :-(

So I don't think it's your PC

N-P-G.de rulez
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 17th Mar 2003 01:28
yes, but even AFTER the code has finished running, and you return to edit mode, the directory still exists and is ( according to windows ) still in use, even though DB is in edit mode ?

surely this is no good, for once a code is comipled., so everytime you want to delete a saved game ( for example ), you have to quit the game and remove it manually in windows ?

Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 17th Mar 2003 01:44
I've run this in DBPro under Windows 98se and all is well, it creates and deletes the folder as expected.

So there maybe be an issue with DB classic on this.

...satisfy my curiosity, when you create the folder what does Get Dir$() say?

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 17th Mar 2003 02:21
ok, here, yet again is an altered example, I have added the code to print get dir$(), after the DIR creatation and again , after DIR deletion, on my pc - DB classic, win XP, it prints C:\MYDIR, even after it has been deleted!



simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 17th Mar 2003 02:27
oh, btw, Easily Confused, where abouts in the uk are you, if you dont mind me asking ?

Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 17th Mar 2003 02:28
OK, now remove, Set Dir "C:\mydir", and tell me what it says. I could be wrong but I'm begining to suspect something.

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 17th Mar 2003 02:28
I'm an Essex lad

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.
simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 17th Mar 2003 02:31
hmm very strange indeed :
the result prints...
C:\Program Files\Dark Basic Software\Dark Basic\help\input
which is the last dir I would have been in, as I`ve been looking at the input commands...

what do you think ???

simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 17th Mar 2003 02:34
I`m in Leicester, and getting irritated with this code!! lol

as I`ve found other problems, but its just down to stray variables - Hmm bug testing - I love it! ( seems to be easier than the delete command tho!!!! )

simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 17th Mar 2003 02:36
oh, how compatible id DB classic code with DB pro ?
I`m getting pro tommorow ( I hope ), whats the chances of my code working in it?, or would there be lots of bits to change ?

simonuk74
23
Years of Service
User Offline
Joined: 3rd Nov 2002
Location:
Posted: 17th Mar 2003 02:42
anyway - I gotta go bed - work in about 5 hours....

but I`ll return tomorrow, as I`m sure I¬ll still be having problems.

see ya then!

Shadow Robert
23
Years of Service
User Offline
Joined: 22nd Sep 2002
Location: Hertfordshire, England
Posted: 17th Mar 2003 02:55
db standard/enhanced won't delete directories with files within them ... you'll have to run a checklist for files/directories and delete that way.

but thats the only problem i remember with the delete directory

Tsu'va Oni Ni Jyuuko Fiori Sei Tau!
One block follows the suit ... the whole suit of blocks is the path ... what have you found?
Easily Confused
23
Years of Service
User Offline
Joined: 22nd Oct 2002
Location: U.K. Earth. (turn right at Venus)
Posted: 17th Mar 2003 03:02
Hmmm, not what I was expecting, that should be displaying your current working directory. What's it doing looking in the help files?

I was in fact half expecting "c:\mydir" which would also be wrong, but that's not the case here. Very Odd.

Ah! Upgrading yourself to DBPro are we, welcome aboard. I'd say over 90% of your code should be OK, although I would suggest reading pages 16-17 of the small manual when it arrives. Sprite handeling is a little different but not difficult. There are other subtle changes to, but you should have no trouble adapting. Just make sure that you are fully patched in both DBPro and the editor when you get it.

On top of that you will be getting DBPro in time for patch 4 (any day now I hope), which is a re-write of the 3D core which has become alot faster. Your lucky in a way, you've not been a DBPro user who has been waiting about 2 months for it (pacing up and down in my padded cell)

One thing is certain, your original post above does work in DBPro under windows 98se, It should work for you, if not, then it's Windows XP messing you around.

-

Raven, in the above example there are no files in the folder for Simonuk74 to worry about. Still a bit strange.

Programming anything is an art, and you can't rush art.
Unless your name is Bob Ross, then you can do it in thirty minutes.

Login to post a reply

Server time is: 2026-06-11 17:30:31
Your offset time is: 2026-06-11 17:30:31