![]() |
HP49G+. How to erase a directory that contains lots of stuff? - Printable Version +- HP Forums (https://archived.hpcalc.org/museumforum) +-- Forum: HP Museum Forums (https://archived.hpcalc.org/museumforum/forum-1.html) +--- Forum: Old HP Forum Archives (https://archived.hpcalc.org/museumforum/forum-2.html) +--- Thread: HP49G+. How to erase a directory that contains lots of stuff? (/thread-129555.html) |
HP49G+. How to erase a directory that contains lots of stuff? - J.C.Boco - 12-14-2007 I have 2 HP49G+ calculators....one for use and one for "backup" (for exams). You know, just in case one of the keys breaks or something (hasn't happened after 3 years of tough use, but still...) anyway, I periodically say all my stuff onto an SD card, and then use the SD card in HP #2 and use the RESTORE command to bring #2 up to date. Well, now I get a message when I try to RESTORE "insufficient memory". So I just cleared a bunch of variables, then cleared some more, then cleared some more. CLUSR isn't too convenient, because I have lists of variables and folders with stuff in them (all mixed up together), and the CLUSR always stops when it comes to a full directory and says something like "I can't do that". And NOW I have even MORE stuff on the SD card from my last ARCHIVE command. It will take even MORE manual erasing of stuff until there is enough memory on HP#2 for me to do a RESTORE command. Is there a way to purge a Directory, even if the directory has gobs of stuff in it? I figure all I have to do is purge just one directory (Thermo or Fluids or Statics), any folder with big hunky equations will do. Then I can just do the RESTORE thing.
Any ideas?
Re: HP49G+. How to erase a directory that contains lots of stuff? - Raymond Del Tondo - 12-14-2007 Use TVARS with your wanted var type(s) as argument, then PURGE. HTH
Raymond
Re: HP49G+. How to erase a directory that contains lots of stuff? - James M. Prange (Michigan) - 12-15-2007 Quote:
Of course, to do a RESTORE, you do have to have enough free memory
As you've noted, CLUSR (synonym for CLVAR) and, for that matter,
To purge non-empty subdirectories (including any "descendent"
Note that both PURGE and PGDIR can take either a name or a list of
A program to purge everything (except the hidden subdirectory) %%HP: T(3)A(D)F(.);But if you intend to do a RESTORE, it may be faster to clear all memory first. RESTORE starts out by doing what amounts to a PGDIR on the home directory, so will purge all variables (and subdirectories).
To clear all user memory more quickly, hold down the ON key while
A possible disadvantage to clearing all memory is that all modes
For the 49 series, the PUSH command will store the current path
Note that the RESTORE ends with a warmstart, which clears flag -62
Regards, Edited: 15 Dec 2007, 6:56 p.m. after one or more responses were posted
Re: HP49G+. How to erase a directory that contains lots of stuff? - James M. Prange (Michigan) - 12-15-2007 PS: On the 49 series, the filer's PURGE operation will purge non-empty directories. It's like a combination of PURGE and PGDIR.
Regards, Re: HP49G+. How to erase a directory that contains lots of stuff? - James M. Prange (Michigan) - 12-15-2007 PPS:
Of course, for a program that purges everything (including non-empty %%HP: T(3)A(D)F(.);For a program that takes either a global name or list of global names, and purges subdirectories (empty or not) as well as other variable types, try the following: %%HP: T(3)A(D)F(.);Regards, James Re: HP49G+. How to erase a directory that contains lots of stuff? - John Keith - 12-16-2007 Hi James,
Re: HP49G+. How to erase a directory that contains lots of stuff? - James M. Prange (Michigan) - 12-16-2007 Quote:Well, to verify that a subdirectory really is type 15, I simply put a subdirectory on the stack and used it as the argument for the TYPE command, without bothering to look it up in any reference material.
I probably should've written "directory object", as the home
Yes, the 48gII/49g+ AUR seems to have left out types 13 and 15; I Quote:The 49G AUG lists object types 0-31. Type 31 should be "External object", not "Extended object".
The 48G series AUR lists types 0-31, but in the 48 series, 27-31 Quote:Type 13 is a unit object.
Regards, Edited: 17 Dec 2007, 12:30 p.m.
|