User commands can be used for various type of commands, I'm using them as an alternative to shell extensions on the context menu.
I have the following commands:
>%systemroot%\System32\WindowsPowerShell\v1.0\powershell.exe -NoExit -Command cd $PThis opens a PowerShell window and sets the current location to the one currently open in the active xplorer² window.
>%bindir%\tools\DiscUtils\ISOCreate.exe C:\folder_$B.iso $FThis takes the currently selected folder ($F) and creates an ISO image using the name of the folder ($B). DiskUtils can be downloaded from CodePlex
>%bindir%\unzip.exe $N -d E:\news\$BExtracts all files in the selected zip archive ($N) to a folder the the same name as the archive ($B) in a certain location.
When you press F7 to create a new file, the new file name is 'New File.txt', in more cases than not I don't want a txt file but cmd or ps1 or whatever.
There is a setting for this, because I'm using the file based settings I just open 'x2settings.ini'. In the [xplorer2_UC] section change 'szNewFileExt=txt' to 'szNewFileExt=.' Now you don't get any extension and can choose one yourself.
The same setting also exists in the registry and in advanced settings
In options untick 'Faster network access with plain icons etc'
I do like the Windows Photo Viewer, in Windows 10 it takes some effort to get this to work as the default image viewer.
I have set it up that if I select an image file and press F3, the Windows Photo viewer starts up.
This involved two steps, first we need to have a way to run the viewer itself which is a DLL rather than a exe, I use this batch file"
SET string=%1 SET fileName=%string:"=% start %SystemRoot%\System32\rundll32.exe "%ProgramFiles%\Windows Photo Viewer\PhotoViewer.dll", ImageView_Fullscreen %fileName%We need the string replacement because, the command doesn't work when using quotes.
HKEY_CURRENT_USER\SOFTWARE\ZabaraKatranemia Plc\xplorer2_UC\szExternalViewer = C:\scripts\ViewImage.cmd