View Full Version : Auto file delete
DCBAKER
02-20-2007, 01:18 PM
All,
Is there an app which will automatically delete file at a specified time or with a specific command stroke? I'm using Dio Player as an Mp3 player 'cause it's free. One of the features it lacks is the ability to clear a playlist from its main screen all at once. You have to delete each song individually. However, I figured out that if I go to the file manager in Zlauncher and delete the file "Mp3ListDB" it clears the entire list. Is there some software (preferably free) that would allow me to somewhat automate this process so that I wouldn't have to go through all of these steps? Some way to delete a specific file from the internal memory without having to exit Dio Player, open the file manager, scroll down to the right file, delete it and then close the file manager? Am I asking for too much?
Thanks in advance.
phreakonaleash
02-20-2007, 01:22 PM
DAs, anyone? if that's all you need is something to fry that file, i can do it.
What's the Creator ID, type of the file?
DCBAKER
02-20-2007, 01:52 PM
Wow! That was a fast reply. The creator ID is DIOK and file type is DATA. How do you create a DA that will do this? (Not that I would probably understnd the explanation even though I'd like to...)
phreakonaleash
02-21-2007, 08:18 AM
#pragma segment 1000
void DAMain ()
{
LocalID id = DmFindDatabase (
0, /*In RAM?*/
"Mp3ListDB"); /*Name*/
DmDeleteDatabase (
0, /*In RAM?*/
id);
}
OnBoardC compliant. Type as DAcc,a nd the Creator ID of your choosing will do it whenever you launch the DA. If you don;t want to compile it I'll mail it to you.
[/code]
DCBAKER
02-21-2007, 08:42 AM
#pragma segment 1000
void DAMain ()
{
LocalID id = DmFindDatabase (
0, /*In RAM?*/
"Mp3ListDB"); /*Name*/
DmDeleteDatabase (
0, /*In RAM?*/
id);
}
OnBoardC compliant. Type as DAcc,a nd the Creator ID of your choosing will do it whenever you launch the DA. If you don;t want to compile it I'll mail it to you.
[/code]
I've never complied anyhting so am not sure how to even accomplish this... Could you send it to me: dbaker34 at yahoo dot com?
Thanks so much for your help.
I love my mom
02-21-2007, 08:54 AM
You'd probably be a lot more accurate if you did dmbetnextdatabasebytypecreator instead of dmfinddatabase.
DCBAKER
02-21-2007, 09:08 AM
Well I'm lost... I downloaded something called OnBoardC and OnBoard Asm, but i have no idea how to use either one. Wish I knew how to do this myself as it seems pretty useful.
phreakonaleash
02-21-2007, 10:26 AM
Aw the joys of OnBC....
@ILMM: Yeah, I thought of GetnextByTypeCreator, but if it returns more than one it might get confizzled... This is a quick fix causet there is prolly only one 'Mp3ListDB' on his device.
@DBAKER: I'll mail it to you either tonight or tomorrow night, k?
And about OnBC goto yahoo.com/groups/onboardc , join it just search through, post some stuff get to know the guys. Make contacts, ya know. And in your download under documention, put Cookbook on your device somehow (pluck it, etc...). It'll get you started.
DCBAKER
02-21-2007, 10:41 AM
Aw the joys of OnBC....
@ILMM: Yeah, I thought of GetnextByTypeCreator, but if it returns more than one it might get confizzled... This is a quick fix causet there is prolly only one 'Mp3ListDB' on his device.
@DBAKER: I'll mail it to you either tonight or tomorrow night, k?
And about OnBC goto yahoo.com/groups/onboardc , join it just search through, post some stuff get to know the guys. Make contacts, ya know. And in your download under documention, put Cookbook on your device somehow (pluck it, etc...). It'll get you started.
Thanks. I'll check out the yahoo group.
bh77a
02-21-2007, 01:02 PM
DCBAKER,
If you are having trouble with Onboard C, you might want to take a look at iziBasic. It is a terrific compiler, although not free. Attached is an app that I wrote to delete your playlist file that can be launched from ZLauncher or launched at a preset time using Crony 3 (I think that it is in the freeware section here at 1src). The source code is included as well so that you can see how easy it is to use.
Tested the app on my TX and it worked fine, although you should always back up prior to a new app install.
Here is the link to download:
http://geocities.com/bh77a/palm_stuff/deletepl.zip
DCBAKER
02-21-2007, 01:34 PM
DCBAKER,
If you are having trouble with Onboard C, you might want to take a look at iziBasic. It is a terrific compiler, although not free. Attached is an app that I wrote to delete your playlist file that can be launched from ZLauncher or launched at a preset time using Crony 3 (I think that it is in the freeware section here at 1src). The source code is included as well so that you can see how easy it is to use.
Tested the app on my TX and it worked fine, although you should always back up prior to a new app install.
Here is the link to download:
http://geocities.com/bh77a/palm_stuff/deletepl.zip
This is perfect! I've added it to LaunchAnywhere so that I can use it very much like a DA. Anyone else using DioPlayer should check it out.
As for OnboardC, I'm not really having a problem with it. I'm having a problem with the fact that I have absolutely no knowledge of programming. I did do some programing in Fortran on punch cards in a highschool about 30 years ago. The problem is I can't remember any of it and I can't figure out where to put the punch cards in my Palm.
Thanks again for your help.
phreakonaleash
02-21-2007, 07:53 PM
ooooh~ one up! good luck luck man, luck!
DCBAKER
02-22-2007, 08:23 AM
ooooh~ one up! good luck luck man, luck!
Hey, a DA to do the same thing would still be useful. Thanks for your efforts too Phreak.
I love my mom
02-22-2007, 09:16 AM
Aw the joys of OnBC....
@ILMM: Yeah, I thought of GetnextByTypeCreator, but if it returns more than one it might get confizzled... This is a quick fix causet there is prolly only one 'Mp3ListDB' on his device.
Well, it would sort of be a pain, but technically, it would be most accurate if you went through all the db's with DmGetNextDatabase.. and check the title of the db with DmDatabaseInfo, if it's the one you're looking for, bingo! But of course, DmFindDatabase is much easier (probably what I would've done) but it's not quite as accurate.
But that's another story :rolleyes:
Good luck DCBAKER!
yitzle
02-23-2007, 12:14 AM
That's why they call them hacks ;) Quick, easy and dirty. Work 95% of the time.
@phreakonaleash: Isn't pragme #1000 for hacks? Haven't I seen you on another forum? Will PM you a list of potential forums...
phreakonaleash
02-23-2007, 12:37 AM
hey yitzle. im on onbc 's user group alot. the pragma just sticks tehe code in code 1000. It's just where the da launcher looks for the code. i'm tryingg atomik in mykbd soo pardon all of the typos...
vBulletin v3.0.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.