xp好还是vista好_创建快捷方式以删除Windows Vista(或XP)“开始”菜单中的最新项目...

xp好还是vista好

xp好还是vista好

Have you ever tried going through all of the menus required to delete the Recent Items in the XP Start Menu? It takes forever, especially when you want to hide whatever you shouldn’t have been doing. As usual, there’s a simpler way to do it.

您是否曾经尝试过删除XP“开始”菜单中“删除最近的项目”所需的所有菜单? 它需要永远的时间,尤其是当您想要隐藏不该做的事情时。 和往常一样,有一种更简单的方法可以做到这一点。

[Update] A number of readers have pointed out that in Vista you can just right-click the recent items and choose “Clear Recent Items List”. XP is the only one with a bunch of menus to go through. Either way this should work the same across both versions.

[更新] 许多读者指出,在Vista中,您可以右键单击最近的项目,然后选择“清除最近的项目列表”。 XP是仅有的一堆菜单 无论哪种方式,这两个版本均应相同。

You can either manually open the shell folder and clear out the items, or you can use the script I’ve provided which will actually give you a shortcut that deletes the recent items with nothing more than a double-click.

您可以手动打开shell文件夹并清除项目,也可以使用我提供的脚本,该脚本实际上为您提供了一个快捷方式,只需双击即可删除最近的项目。

Just to be very clear, this is the list of items that we’ll be clearing out:

十分清楚,这是我们要清除的项目列表:

image

Note: This will not actually delete those files, it will just delete the shortcuts to the files that are stored in the recent folder.

注意:这实际上不会删除那些文件,它只会删除存储在最近文件夹中的文件的快捷方式。

Where Is the Recent Folder so I Can Delete Them Manually?

最近的文件夹在哪里,以便我可以手动删除它们?

Like many folders in Windows, this one is hidden away underneath your profile folder. The full path on Windows Vista would be this, substituting your username into the path:

与Windows中的许多文件夹一样,该文件夹隐藏在配置文件文件夹的下方。 Windows Vista上的完整路径是这样,将您的用户名替换为以下路径:

C:\Users\<user>\AppData\Roaming\Microsoft\Windows\Recent\

C:\ Users \ <用户> \ AppData \ Roaming \ Microsoft \ Windows \ Recent \

If you are using the command line, you can use the %APPDATA% environment variable to figure out the path without needing to know the username (This also works in Explorer as well)

如果使用命令行,则可以使用%APPDATA%环境变量来找出路径,而无需知道用户名(这也适用于Explorer)

%APPDATA%\Microsoft\Windows\Recent\

%APPDATA%\ Microsoft \ Windows \ Recent \

Or the easiest possible way is to just type in this shell shortcut into the address bar or start menu search box:

或最简单的方法是只在地址栏或开始菜单搜索框中输入以下shell快捷方式:

shell:recent

外壳:最近

image

You can remove any items from this folder, or even delete all the items. You’ll see them disappear from the Recent menu immediately. Again, these are just shortcuts to the actual file, as you can see with the Type column above.

您可以从此文件夹中删除任何项目,甚至删除所有项目。 您会立即看到它们从“最近使用”菜单中消失。 同样,这些只是实际文件的快捷方式,如您在上面的“类型”列中所见。

Clear Out the Recent Items With a Shortcut

用快捷方式清除最近的项目

With a little bit of Windows Script Host magic, we can make a script that deletes the items in the recent folder… it only takes 4 lines of code!

有了一点Windows Script Host的魔力,我们可以制作一个删除最近文件夹中项目的脚本,它只需要4行代码!

Create a new file named DeleteRecentItems.js with Notepad, and then paste in the following lines (Or just download the zipped file linked below)

使用记事本创建一个名为DeleteRecentItems.js的新文件,然后粘贴以下几行(或下载下面链接的压缩文件)

var fso = WScript.CreateObject(“Scripting.FileSystemObject”);var WSH = new ActiveXObject(“WScript.Shell”);var folder = WSH.SpecialFolders(“Recent”);fso.DeleteFile(folder + “\\*.*”);

var fso = WScript.CreateObject(“ Scripting.FileSystemObject”); var WSH =新的ActiveXObject(“ WScript.Shell”); var文件夹= WSH.SpecialFolders(“ Recent”); fso.DeleteFile(folder +“ \\ *”。 *”);

Once you save the file, you should now have a new icon that can be double-clicked to clear the recent items.

保存文件后,现在应该有一个新图标,可以双击以清除最近的项目。

image

If you want to assign a new icon or add a shortcut key, you’ll need to create a shortcut to the file. I’d recommend putting the script file into a folder somewhere, and then creating a shortcut to it in your Quick Launch or Desktop folder.

如果要分配新图标或添加快捷键,则需要为该文件创建快捷方式。 我建议将脚本文件放入某个位置的文件夹中,然后在“快速启动”或“桌面”文件夹中为其创建快捷方式。

Once you have the shortcut created, you can right-click on it and choose Properties, and then click on Change Icon or add in a Shortcut key if you would like.

创建快捷方式后,可以右键单击它并选择“属性”,然后单击“更改图标”或根据需要添加“快捷键”。

image

Disclaimer: I tested this out on Windows Vista, but since this deletes files… use at your own risk and I’m not responsible, etc =)

免责声明:我已在Windows Vista上对此进行了测试,但是由于此操作会删除文件,使用风险自负,我不承担任何责任,等等=)

Download DeleteRecentItems Script (Zipped)

下载DeleteRecentItems脚本(已压缩)

翻译自: https://www.howtogeek.com/howto/windows-vista/create-a-shortcut-to-delete-recent-items-in-windows-vistas-start-menu/

xp好还是vista好

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值