Search found 2 matches

by gearer
10 Jan 2017 13:37
Forum: DOS Batch Forum
Topic: Trying to adapt Batch file to work on folder/file names with spaces
Replies: 3
Views: 3871

Re: Trying to adapt Batch file to work on folder/file names with spaces

Compo wrote:This is your problem:

Code: Select all

mkclean --optimize %~dpnx1 %~dpn1_fixed.mkv
fixed as:

Code: Select all

mkclean --optimize %1 "%~dpn1_fixed.mkv"


This fixed the issue with spaces, but now the batch file does not continue to the next file. Also, the "delete old file" stopped working. Any ideas?
by gearer
10 Jan 2017 04:20
Forum: DOS Batch Forum
Topic: Trying to adapt Batch file to work on folder/file names with spaces
Replies: 3
Views: 3871

Trying to adapt Batch file to work on folder/file names with spaces

Hi. I am trying to adapt this batch file(made by adrian from wdtvforum.com) to work on folder/file names with spaces: FOR /F "delims=*" %%A IN ('dir /b /s *.mkv') DO CALL:WDTVFIX "%%A" START "" logging.txt GOTO :eof :WDTVFIX mkclean --optimize %~dpnx1 %~dpn1_fixed.mkv i...