Page 1 of 1

Calling command line conversion with space in file name

Posted: 18 Jan 2011 22:25
by bullyellis
Hello,

I am using the following script to convert all .wma files in a given directory to mp3s.

Code: Select all

for %%a in (*.wma) do cmd /c "C:\Program Files\videoLAN\VLC\vlc" -I dummy -vvv %%a --sout=#transcode{acodec=mp3,ab=64}:standard{access=file,dst=%%a.mp3} vlc://quit
It works fine, except when there are spaces in the .wma file name. I tried adding double quotations around %%a, but still no luck. Does anyone have any ideas?

Re: Calling command line conversion with space in file name

Posted: 20 Jan 2011 13:16
by VLC_help
Something like

Code: Select all

for %%a in (*.wma) do "C:\Program Files\videoLAN\VLC\vlc" -I dummy -vvv "%%a" --sout=#transcode{acodec=mp3,ab=64}:standard{access=file,dst="%%a".mp3} vlc://quit

Re: Calling command line conversion with space in file name

Posted: 21 Jan 2011 15:03
by bullyellis
That worked.

Thanks!