0

Windows 在系统上下文菜单中显示“撤消重命名”、“撤消删除”或“撤消移​​动”,因为您对某些文件进行了任何这些最近的更改!

我创建了一个程序,使用My.Computer.FileSystem.RenameFileVB.net 中的方法重命名用户选择的特定文件。

My.Computer.FileSystem.RenameFile("C:\Test.txt", "SecondTest.txt")

但是“Windows”无法检测到这些变化。

这不是在我的程序中给这个选项“撤消重命名”,而是让“Windows”检测到更改以提供通过系统上下文菜单撤消它们的选项!

4

1 回答 1

0

It is not "Windows" that is tracking that change it is the "File Explorer" program (it tracks changes that are made from within that program).

I don't think there will be any way to tell File Explorer that you have made a change to a file and add the undo action to its list.

于 2012-08-20T11:14:52.153 回答