Skip to content

Instantly share code, notes, and snippets.

@ScribbleGhost
ScribbleGhost / Getting file names in a batch script.md
Created April 11, 2021 14:48
How to print file names with and without extensions in a Windows batch script. With relative or full path.

Getting file names in a batch script

Remember:

  • Replace double precentages with single precentage if you want to use it in CMD directly.
  • When file names are printed out, they already include double quotes.
@echo off