Tip: Clear list of recent Documents

Share your advanced PureBasic knowledge/code with the community.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Tip: Clear list of recent Documents

Post by BackupUser »

Code updated for 5.20+

Restored from previous forum. Originally posted by cor.

Code: Select all

SHAddToRecentDocs_ (2, #NULL)

Registered user of PB

C. de Visser
Author of Super Guitar Chord Finder
http://www.ready4music.com
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.
SHAddToRecentDocs_ (2, NULL)
Registered user of PB
C. de Visser
Does this refer to the Windows "Recent"
documents folder/directory?
why not:

Code: Select all

echo y | erase c:\windows\recent\*.*
-jb
2 questions..

Isn't it safer to use Cor's example as it gets the document's path details exactly from windows itself and avoids typing an erase command and optionally making a mistake with it (dangerous command!!) and also:

You would run the echo command via "Runcommand" right? So doesn't that add extra code overhead.. Not sure if I remember but does'nt a RunCommand load an extra copy of the command intepreter on win2000 down? Or am I wrong (don't remember exactly)


Fangles
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by PB.
why not:

Code: Select all

echo y | erase c:\windows\recent\*.*
-jb
Because it doesn't work for W2K/NT and different profiles.


PB - Registered PureBasic Coder
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by Fangbeast.
It was a joke gentlemen!

I was alluding to the implication
that it was a Windows only tip,
(at least I think it is),
and that there was no
way a newbie would
know any different.

Just as my example was O.S. specific. -jb

Edited by - TronDoc on 25 January 2002 11:19:40
Ah so, I bow down before your magnificent joklieness!! You are the grand Smurf PooBah of jokes!!!

Fangles
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by TronDoc.

my apologies..jb
Post Reply