Joe Strazzere - All Things Quality

Visit my new blog at http://strazzere.blogspot.com/


December 1, 2005 - WinTask - SHAddToRecentDocs

Posted in WinTask

'
' SHAddToRecentDocs - add a file name to the Windows Documents list, or clears it
'
' Author: Joe Strazzere

'

 

' SHAddToRecentDocs Lib "shell32.dll" (ByVal uFlags As Long, ByVal pv As String)

 

fil$=InputBox$("File to be added to Recent list : ","SAddToRecentDocs", "c:autoexec.bat")

 

ret=External("shell32","SHAddToRecentDocs",2,fil$)

msgbox(fil$+" added to Documents list",,"SHAddToRecentDocs")

 

pause 3 secs

 

ret=External("shell32","SHAddToRecentDocs",2,0)    ' clears the Documents list

msgbox("Documents list cleared",,"SHAddToRecentDocs")


<- Last Page :: Next Page ->

About Me

A gathering place for information and ideas about Quality Assurance, Testing, and other useful topics.

Problems cannot be solved by the same level of thinking that created them. - A. Einstein

Search This Site

Translate This Site

RSS Feed

Subscribe

Twitter

@jstrazzere

Categories

Life
QA
Sports
Tools
WinTask
Work in General

What I'm Reading Now