Here's just a simple batch script that I found on the internet and changed slightly for my own use. It uses powershell to invoke the openfiledialog() function. This is extremely useful in situations where windows explorer is unavailable on a system, either because of an infection or because its server core edition and thus missing or something along those lines.
@echo off
color 0a
echo.
echo Errors and messages will be outputted here.
echo.
setlocal
:top
set filename=
set ps_cmd=powershell "Add-Type -AssemblyName System.windows.forms|Out-Null;$f=New-Object System.Windows.Forms.OpenFileDialog;$f.Filter='All files (*.*)|*.*';$f.showHelp=$true;$f.ShowDialog()|Out-Null;$f.FileName"
for /f "delims=" %%I in ('%ps_cmd%') do set "filename=%%I"
if defined filename (
start %filename%
goto top
)
Maybe someone else can use it!