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.
Why would you need this? It's already build into the Windows Explorer Shell, but hey Server Core has no such shell.
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.
We store this as a file like: C:\scripts\ViewImage.cmd
then in xplorer² we have to tell it to use this whenever we press F3, in the UI it only allows us to select EXEs, so we have to set the value in the registry
HKEY_CURRENT_USER\SOFTWARE\ZabaraKatranemia Plc\xplorer2_UC\szExternalViewer = C:\scripts\ViewImage.cmd
- Crtl+E = Show In Group
- Crtl+L = Auto Filter
- Crtl+N = News/Downloads
- Crtl+K = My Computer