Note: Those who want to try out the executables in the examples below, feel free to follow the link to download from their official websites (and may need to install), or download from my GoogleDrive link (64-bit only, extracted from my installation folder, so no need to install and no virus - GoogleDrive's cloud-based virus scan will prove it )
Example 1: *CMD /K CD /D [directory]: Launch CMD with elevated right
Both %P and "%P" work if the path in the active panel has spaces.
Code: Select all
(Works for path with spaces)
buttonNN=%COMSPEC%
cmdNN=*%COMSPEC% /K
paramNN=CD /D "%P"
(Works for path with spaces)
buttonNN=%COMSPEC%
cmdNN=*%COMSPEC% /K
paramNN=CD /D %P
Only "%P" works if the path in the active panel has spaces. %P doesn't (program launches without any error message, but the path will be truncated up to the first space).
Code: Select all
(Works for path with spaces)
buttonNN=FolderTimeUpdate.exe
cmdNN=FolderTimeUpdate.exe
paramNN=/BaseFolder "%P"
(Doesn't work for path with spaces; path truncated)
buttonNN=FolderTimeUpdate.exe
cmdNN=FolderTimeUpdate.exe
paramNN=/BaseFolder %P
Neither %P nor "%P" works if the path in the active panel has spaces.
Code: Select all
(Doesn't work for path with spaces - error out)
buttonNN=WinRAR.exe
cmdNN=WinRAR.exe
paramNN="%P"
(Doesn't work for path with spaces - error out)
buttonNN=WinRAR.exe
cmdNN=WinRAR.exe
paramNN=%P