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 / Delete Directory - Command Not Working In DBC

Author
Message
Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 24th Jan 2005 02:25
I can't figure out why it's not working. I did everything right.

I even tried just this code:



And it still won't work. Any Idea's?
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 24th Jan 2005 03:26
how do you even know if the dir was there it gets deleted very quickly

Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 24th Jan 2005 03:34
The make directory command is fine, thats not the problem.

In one of my games, it makes a directory and some temporary files that the game needs for just a second are put in the directory.

However, the game only needs them for a second, so after its done with those files, I tell it to call the Delete Directory command and it doesn't work.

All the files inside the directory are deleted, but the directory itself is still there.

When I run just this:


Make Directory "Blah"
Wait 1000
Delete Directory "Blah"


The directory "Blah" is created, but not deleted, even when I tell it to.
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 24th Jan 2005 03:39 Edited at: 24th Jan 2005 03:42
EDIT

i think i found the problem the folder comes in as read only therfore it wont let me delete it

Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 24th Jan 2005 03:49
Ya, your right, I never noticed that before.

Do you think there's anyway around this?
Osiris
20
Years of Service
User Offline
Joined: 6th Aug 2004
Location: Robbinsdale, MN
Posted: 24th Jan 2005 03:56
not that i know of but im sure someone will tell you how thwt did it because there must be a way or why do they have the delete directory command

Underworld 1020
21
Years of Service
User Offline
Joined: 2nd Mar 2004
Location: NY, USA
Posted: 24th Jan 2005 04:14
True.

Login to post a reply

Server time is: 2025-05-24 03:41:11
Your offset time is: 2025-05-24 03:41:11