Windows XP:替换标准的“新文件夹” 使用 WSH 脚本执行操作

发布于 2024-07-11 09:35:34 字数 390 浏览 5 评论 0原文

问题:我有一个自定义 WSH 脚本,它以与 Windows 桌面中标准“新建文件夹”操作类似的方式创建新目录。 然而,这个脚本做了一些额外的事情; 例如允许我创建一组预定义的子目录(可选); 如果目录与工作相关或针对特定客户,则允许我添加注释和提醒。

我希望能够做到这一点,以便每次我在 Windows XP 中调用“新建文件夹”操作时都会运行该脚本。

问题:有哪些选项(如果有)可以让我替换 WindowsXP 中新目录的标准创建,以便运行我的自定义 WSH 脚本?

额外问题:无论在 Windows XP 中执行此类操作是否以及有多麻烦,Windows Vista 是否会使其变得更容易?

Problem: I have a custom WSH script that creates a new directory in a similar manner to the standard "New Folder" action in the Windows desktop. This script, however, does a couple of extra things; such as allowing me to create a pre-defined set of child directories (optional); as well as allowing me to add notes and reminders if the directory is work-related or for a particular customer.

I would like to be able to make it so this script runs every time I invoke the "New Folder" action in windows xp.

Question: What options are available (if any) to allow me to replace the standard creation of new directories in WindowsXP so that my custom WSH script runs instead?

Bonus Question: Regardless of whether and how cumbersome it is to do such a thing in Windows XP, does Windows Vista make it any easier?

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

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

发布评论

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

评论(1

落日海湾 2024-07-18 09:35:34

Windows XP 中文件夹的标准创建是 CreateDirectory。 这是一个 Kernel32 函数。

由于您指的是“新文件夹”,并且期望有 UI,所以我认为您实际上指的是 Explorer,XP 的默认 shell。 “新文件夹”是上下文菜单中的预定义条目,并且该列表是可扩展的。 但是,您会注意到一条分隔线。 “文件夹”和“快捷方式”是内置的;其他条目已配置。在分隔线下方添加“新文件夹结构”条目很简单(HKCR 中的 ShellNew 键)

The standard creation of folders in Windows XP is CreateDirectory. This is a Kernel32 function.

Since you're referring to "New Folder", and expect to have UI, I think you are actually refering to Explorer, the default shell for XP. "Ne Folder"is a predefined entry in the context menu, and that list is extensible. However, you'll notice a divider line. "Folder'and "shortcut" are built-ins; the other entries are configured. It would be trivial to add a "New Folder Structure" entry below the divider (ShellNew key in HKCR)

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