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 Professional Discussion / DBPro Temp Files - Keeping them in check.

Author
Message
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 3rd Dec 2003 14:57
Hi all,

Firstly, this app requires VB40032.DLL to run, LLRGT attachment sizes would'nt allow such a huge 350kb zip, so I had to exclude it.

Some of you may have noticed the baggage DBPro leaves in the windows temp directory when running an executable. If you haven't go have a look and see how much space is wasted! - on most DBPro executables it uses about 5mb, everytime you run a DBPro app, whether it's a demo you've downloaded or inside the IDE.

This little prog is designed to sit in your startup directory and it cleans out all the DBP temp folders for you everytime you reboot. Make it a shortcut and specify the windows temp directory as a switch if it's anywhere but ''C:\Windows\Temp'', no inverted commas, your shortcut command might look like:

D:\Program Files\DBTemper.exe D:\Windows\Temp

If your windows directory is simply C:\Windows, then you can just extract the app to your startup directory.

Get the file here (only a couple of Kb)
http://www.dannywartnaby.co.uk/rgt/attachments/DBTemper.zip


Van-B


I laugh in the face of fate!
heartbone
23
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 3rd Dec 2003 17:46
Could you also make it clean out the registry trash?

The more you see, the more you know.
The more you know, the more you see.
Van B
Moderator
23
Years of Service
User Offline
Joined: 8th Oct 2002
Location: Sunnyvale
Posted: 3rd Dec 2003 18:03
Hmmm, I'll look into that - pretty sure I can find the .dll calls to remove registry keys.


Van-B


I laugh in the face of fate!
heartbone
23
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 3rd Dec 2003 18:10
That would be great! The program is already a nice idea, and with that addition it would be indispensible.

On Windows 9X when you right mouse click on a desktop or window icon you get a context driven menu. When uncached it seems to take a longer and longer delay to appear as the registry gets more and more cluttered.

The more you see, the more you know.
The more you know, the more you see.
Rage_Matrix
23
Years of Service
User Offline
Joined: 14th Dec 2002
Location: Brighton, UK.
Posted: 3rd Dec 2003 18:18 Edited at: 3rd Dec 2003 18:25
Hi there,

I think you'll need to look through the SDK docs for the following API calls which seem to do what you're after...they all seem to be in the "advapi32.dll" DLL.

RegCreateKeyEx()
RegQueryValueEx()
RegOpenKeyEx()
RegDeleteKey()
RegSetValueEx()
RegCloseKey()

EDIT: Sorry.....these are correct.


Hope this helps.

Tron Software
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 3rd Dec 2003 18:37
I'd like to hear if more people are experiencing this Temp dir flood because I am not. I looked on both drives and only found 1 dbp folder in c:\windows\temp and it only contained about 1 meg of data. I have been using dbp on this machine since august with no changes. Maybe there is some specific issue with certain os's/configs. I would want to investigate further before using a program to trash temp data and registry data.

just my thoughts.

-RUST-
JSN
22
Years of Service
User Offline
Joined: 8th Nov 2003
Location: 127.0.0.1
Posted: 3rd Dec 2003 18:39
Machine at home has Windows XP Pro, I've used DBPro since May, with no probs in the temp directory.

Machine at work has Windows 2k, had DBPro on it since September, again, no probs in the temp directory.

-----

~ J ~
Shadow Lord
22
Years of Service
User Offline
Joined: 26th Sep 2003
Location:
Posted: 3rd Dec 2003 18:45
It kinda wierd, but...

Since I posted the original thread, and deleted over 250 meg of temp dir's, not one temp file has been found since! There must be a very specific circumstance that causes them to not be deleted after each run.

I'm using DBPro to write "Suger Free Candyland", for diabetic children!
CattleRustler
Retired Moderator
22
Years of Service
User Offline
Joined: 8th Aug 2003
Location: case modding at overclock.net
Posted: 3rd Dec 2003 18:46
same here no probs running dual boot win2k and win98, only coding in dbp off of the win 2k partition - no problems

-RUST-
heartbone
23
Years of Service
User Offline
Joined: 9th Nov 2002
Location:
Posted: 3rd Dec 2003 18:52
I get the dbpdata folder residue problem running DBPro in Windows 98SE.

I get the registry clutter problem running DBPro in both Windows 98SE and WindowsXP Home. I've read it's a DirectX8 application specific problem.

The more you see, the more you know.
The more you know, the more you see.

Login to post a reply

Server time is: 2026-07-26 20:16:25
Your offset time is: 2026-07-26 20:16:25