从 lnk 恢复文件夹

发布于 2024-10-08 12:24:03 字数 1549 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

流年已逝 2024-10-15 12:24:03

创建一个批处理文件并写入此文件,

attrib -h -s -r \s \d

这将更改当前目录中所有文件和文件夹的属性


更新:

以下vbScript将重命名所有具有类似folder_name扩展名的文件夹。 someExtension 并使用以前的名称。

创建 2 个文件:
1.脚本.vbs
2. rename.bat

script.vbs

Set objFS = CreateObject("Scripting.FileSystemObject")
strFolder = objFS.GetAbsolutePathName(".")
Set objFolder = objFS.GetFolder(strFolder)

For Each Folder In objFolder.SubFolders
   Folder.Name=Mid(Folder.Name,1,InStrRev(Folder.Name,".")-1)
Next

rename.bat

cscript /nologo script.vbs

将它们放置在更改文件夹所在的同一文件夹中。并运行 rename.bat 文件。

就是这样。
享受 :)

Create a batch file and write this

attrib -h -s -r \s \d

this will change attributes of all files and folders at current directory


Update:

The following vbScript will rename all folders having extension like folder_name.someExtension and make them with previous names.

create 2 files:
1. script.vbs
2. rename.bat

script.vbs

Set objFS = CreateObject("Scripting.FileSystemObject")
strFolder = objFS.GetAbsolutePathName(".")
Set objFolder = objFS.GetFolder(strFolder)

For Each Folder In objFolder.SubFolders
   Folder.Name=Mid(Folder.Name,1,InStrRev(Folder.Name,".")-1)
Next

rename.bat

cscript /nologo script.vbs

Place them is same folder where changed folder are. And run the rename.bat file.

and That's it.
Enjoy :)

过潦 2024-10-15 12:24:03

使用“attrib -h -s -r \s \d”
立即为我解决了问题,除了一件事。
反斜杠 (\) 应该都是正斜杠 (/)
尽管如此

attrib -h -s -r /s /d

,还是非常感谢该解决方案的原始发布者,因为它确实对我有帮助。
我只是想向其他可能需要这样做的人指出这一点。

Using "attrib -h -s -r \s \d"
immediately did the trick for me, except for one thing.
The backslashes ( \ ) should both be forward slashes ( / )
So

attrib -h -s -r /s /d

But nontheless, many thanks to the original poster of the solution, because it really helped me.
I just thought i'd point it out for other people who might need to do this.

伴我心暖 2024-10-15 12:24:03

放轻松,,,用最简单的步骤:-

  1. 转到控制面板

  2. 打开文件夹选项

  3. 转到那里的“查看”选项卡< /p>

  4. 子菜单>隐藏文件和文件夹

  5. 勾选该选项,即:显示隐藏的文件和文件夹

  6. 应用并单击“确定”

  7. 立即返回包含 .lnk 扩展名的文件夹的硬盘驱动器

  8. 在那里您将看到原始文件夹(暗淡的闪电)

  9. 删除带有 .lnk 扩展名的文件/文件夹

  10. 并享受原始文件夹......!

希望这有帮助...:-)

Take it easy,,,with easiest Steps :-

  1. Go to Control Panel

  2. Open Folder Options

  3. Go to "View" tab there

  4. Sub Menu> Hidden Files and Folders

  5. Tick the option i.e: Show hidden files and folders

  6. Apply and Click Ok

  7. Now Be Back to Hard Drive Containing Folders of .lnk extensions

  8. There you will see your original folders (dim lightning)

  9. Delete files/folders with .lnk extensions

  10. and enjoy with your original folders....!

Hope this Helps...:-)

維他命╮ 2024-10-15 12:24:03

文件夹属性必须已更改为 Hidden+System+Readonly。删除链接。并启用“查看隐藏文件”“查看系统文件”来查看您的文件夹。

干杯!

The Folders attributes must have been changed to Hidden+System+Readonly. Delete the links. And enable "View Hidden Files" and "View System Files" to view your folders.

Cheers!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文