8
3
Empty "NoWorkingDirectory" string value is often used in Windows Registry when user-defined Right-Click menu items are created. For example to be able to open PowerShell when right-clicking on folder backround in Windows Explorer (as opposed to right-clicking on folder itself, in that case "NoWorkingDirectory" is not used):
[HKEY_CLASSES_ROOT\Directory\Background\shell\powershell]
@="Open PowerShell Here"
"NoWorkingDirectory"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\powershell\command]
@="C:\\\\Windows\\\\System32\\\\WindowsPowerShell\\\\v1.0\\\\powershell.exe -NoExit -Command Set-Location -LiteralPath '%V'"
However, I am not clear on actual purpose of this value. It is always used empty in all samples I found. What exactly does it signify?
I would imagine if there was a directory value it would only work in that directory. Do you have other examples? – Ramhound – 2014-01-17T20:48:10.260
http://www.randyrants.com/2007/02/vista_tip_eleva.html – Joe Schmoe – 2014-01-17T20:52:39.120
http://www.windows7home.net/add-administrator-privilege-to-right-button-in-windows-7/ – Joe Schmoe – 2014-01-17T20:53:20.107
My guess is that it's the folder used to execute from if there's no Working Folder provided when the shell command is called (similar to the "Start In:" option in a Shortcut's properties). When empty it probably assumes the current folder. But again, this is just guessing. ;) – Ƭᴇcʜιᴇ007 – 2014-01-17T21:47:26.547