为什么我不能在Windows Server 2008中删除文件’favicon.ico’?
发布时间:2020-12-13 23:24:13 所属栏目:Windows 来源:网络整理
导读:我在 Windows 2008中将文件favicon.ico从一个网站文件夹复制到另一个网站文件夹. 现在我无法删除此文件,即使作为管理员也无法在安全选项卡中更改其所有者. 我该如何重新获得访问权限? 我发现 Sysinternals Handle是一个方便(和免费)的工具用于这些目的. C:
我在
Windows 2008中将文件favicon.ico从一个网站文件夹复制到另一个网站文件夹.
现在我无法删除此文件,即使作为管理员也无法在安全选项卡中更改其所有者. 我该如何重新获得访问权限?
我发现
Sysinternals Handle是一个方便(和免费)的工具用于这些目的.
C:pathtohandle.exe c:pathtofavicon.ico 但是,handle.exe仅适用于本地句柄,并不能告诉谁打开了文件.此VBS脚本找出谁打开了文件,它可以检查远程服务器上的文件: ' WhosGotItOpen.vbs strServername = "." ' A dot is the same as current computer. ' If you want to check remote server,replace dot with the name of the server. strFilename = "myfile.ext" ' Put the name of your file here. ' Can be also be piece of the path,like: "foldermyfile" Set objFileSystem = GetObject("WinNT://" & strServername & "/LanmanServer") If (IsEmpty(objFileSystem) = False) Then For Each Resource In objFileSystem.Resources If (Not Resource.User = "") And (Not Right(Resource.User,1) = "$") Then If Instr(1,Resource.Path,strFilename,1) > 0 Then WScript.Echo Resource.user & ";" & Resource.Path End If End If Next Else WScript.Echo "Error in filesystem,quitting." WScript.Quit(2) End If (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- vue 工程从window 到mac
- 如何为我的密钥存储密码,以便在Windows上使用git时可以提交
- 调用Windows API实现GBK和UTF-8的相互转换
- 如何在windows azure中创建表格?
- Windows 2008 R2 – 内核(系统进程PID = 4)正在锁定文件和文
- 是否可以使用Windows命令行编辑二进制文件?
- windows-server-2003 – 远程触发WSUS下载的更新安装
- windows-7 – 如何查看端口是否打开?
- windows – ruby?? win32api&structs(VerQueryValue)
- Windows – 具有大量RAM的Exchange服务器上的页面文件的最佳