FileRequester

A file or folder requester for the command line

FileRequester.exe
Version
1.10.0.61
System
Windows, 32-bit (runs on 64-bit too)
Source
github.com/pedromagician/CMD_FileRequester

No installation: unzip anywhere (ideally into a folder on your PATH) and run it from the command line or a batch file.

FileRequester

FileRequester opens the standard Windows file or folder dialog from the command line and prints the selected path to the output. Handy in batch files when the user should pick what to work with instead of typing a path. The name and the idea come from the Amiga, of course.

Features

Usage

FileRequester.exe -title "Select a file" -o -path C:\ -ok OK
FileRequester.exe -open -filter "Text|*.txt|All files|*.*"

Store the selected path in a variable:

@set "FILE="
@for /f "usebackq delims=" %%A in (`FileRequester.exe -o`) do @set "FILE=%%A"
@echo Selected: %FILE%

Options

SwitchDescription
-title, -tWindow title.
-open, -oSelect an existing file.
-save, -sChoose a file name to save, it does not need to exist.
-directory, -dSelect a folder instead of a file.
-filename, -fPre-filled file name.
-okCustom text of the confirm button.
-pathInitial folder (e.g. "D:\").
-drawersonly, -foldersonlyFolders only, no files (mostly with -open).
-filterFile type filters as "Description|*.ext", e.g. "Text|*.txt|All files|*.*".
-help, -h, -?Help.