Re: open parent directories
From: Marc (anonymous_at_microsoft.com)
Date: 09/30/04
- Next message: Yevgen Lazaryev: "Re: Script to know which file a user have access"
- Previous message: Heli2Reg: "Using Reflection to identify methods and properties of objects"
- In reply to: Marc: "Re: open parent directories"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 30 Sep 2004 04:16:03 +0200
With Helge's help I finally found a way to add the command "Open parent folder" to the context menu. :-D
1. I put the following script on C:\
Name of the script: "OpenParentFolder.vbs"
'------------------------------------------
set WshShell = WScript.CreateObject("WScript.Shell")
ShortcutFile = WScript.Arguments(0)
set oShellLink = WshShell.CreateShortcut(ShortcutFile)
WshShell.Run "%windir%\explorer.exe /n,/e,""" & _
oShellLink.WorkingDirectory & """"
'------------------------------------------
2. Then I made these entries in the registry:
Key:
HKCR\lnkfile\shell\ParentFolder
Value:
Open parent folder
Key:
HKCR\lnkfile\shell\ParentFolder\Command
Value:
"C:\windows\system32\wscript.exe" "C:\OpenParentFolder.vbs" "%1"
Bye,
Marc
- Next message: Yevgen Lazaryev: "Re: Script to know which file a user have access"
- Previous message: Heli2Reg: "Using Reflection to identify methods and properties of objects"
- In reply to: Marc: "Re: open parent directories"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|