
Tengo esta línea de código:
@echo off
rem set the path to the Spek executable
set spek=C:\Program Files (x86)\Spek\spek.exe
rem set the path to the audio files
set audio_path=P:\Muzyka\complete\Album
rem loop through all audio files in the specified directory
for %%a in (%audio_path%\*.mp3) do (
rem open the audio file in a new Spek window
start "" %spek% "%%a"
)
Y quiero abrir 2 canciones en esa carpeta, ¿por qué no funciona?
Respuesta1
Deberías haber delimitado el spek
valor de la variable con comillas dobles ya que la ruta tiene espacios:
set spek="C:\Program Files (x86)\Spek\spek.exe"
Probé el archivo .bat después de modificarlo y ¡funciona!