cuando se usa para /f - "fue inesperado en este momento"
Frecuentes
Visto 961 equipos
0
I have the following code in a batch file named test.bat:
SET TEMP_PATH=%1%
for /f "tokens=1,2 delims=:" %%a in {%TEMP_PATH%"} do set PATH=%%a &set REVISION=%%b
when calling in cmd test.bat somelongstring:123456
Yo obtengo:
{somelongstring:123456"} do set PATH=%a &set REVISION=%b was unexpected at this time.
Can anyone tell me why I am getting this error? Thanks in advance!
1 Respuestas
2
utilizan el (
, )
en lugar de {
, }
.
{
,}
are not proper syntax for for
contestado el 28 de mayo de 14 a las 16:05
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas batch-file or haz tu propia pregunta.