Answer the question
In order to leave comments, you need to log in
How to escape paths in "dir"?
The command dir
outputs a string like "C:\path\to\file.mp3"
I need to get the string "C:\\path\\to\\file.mp3"
or
"C:/path/to/file.mp3"
Like this can be done?
More globally, there is a bat file:
@echo off
chcp 65001
dir /s/b > DB.txt
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question