Windows XP: replace the default New Folder action with a WSH script

Problem: I have a custom WSH script that creates a new directory in a similar manner to the standard New Folder actions on the Windows desktop. However, this script does a few extra steps; for example, let me create a predefined set of child directories (optional); and also allows you to add notes and reminders if the directory is work-related or for a specific client.

I would like to have this script run every time I call the New Folder action on Windows XP.

Question: What options are available (if any) so that I can override the standard new directory creation in WindowsXP so that my custom WSH script is executed instead?

Bonus question: No matter how cumbersome it is in Windows XP, does Windows Vista make it any easier?

0


source to share


1 answer


Standard folder creation in Windows XP CreateDirectory . This is a Kernel32 function.



Since you mean "New Folder" and expect a user interface, I think you are actually referring to Explorer, the default shell for XP. "Ne Folder" is a predefined context menu entry, and this list is expandable. However, you will notice a dividing line. "Folder" and "Shortcut" are built-in, other settings are configured. It would be trivial to add an entry "New folder structure" under the separator (ShellNew key in HKCR)

+2


source







All Articles