Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How delete an internet shorcut

Status
Not open for further replies.

celia1

MIS
Nov 25, 2002
20
FR
Hy,

I want delete temporary files in all user profile.
I write a scritp which deletes all *.lnk and it is OK

Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile(Documents and Settings\%username%\Application Data\Microsoft\Office\Récents\*.*")

but I have internet shorcut in this folder, and the script can't delete this.

Please help me.
Thanks
 
Url links have extension .url not .lnk.

- tsuji
 
Your path is wrong in format. Put the exact path pointing to the folder in deletefile.

- tsuji
 
I try with this and the shortcut doesn't delete.

Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile("C:\Documents and Settings\%username%\Application Data\Microsoft\Office\Récents\*.url")
 
Excuse-me

It's my fault. It functions now.

Thanks for your help!!!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top