cmd shell for statement broken again? - Microsoft Community


cls
%%platform in (32 64) (
    for %%src in (c cpp) (
        if .%%src.==.c. (
            echo start gcc -m%%platfrm -o libinteger-input-%%src%%platfrm.o integer-input.%%src > err.%%platfrm.%%src.txt
        ) else (
            echo start g++ -m%%platfrm -o libinteger-input-%%src%%platfrm.o integer-input.%%src > err.%%platfrm.%%src.txt
        )
    )
)

when run batch file, is:

for %platform in (32 64) (

microsoft please fix, cmd shell broken again, , can't builds of either vc++ or gcc.

microsoft please fix, cmd shell broken again, , can't builds of either vc++ or gcc.

when code batch file correctly runs should. command shell not need fixing.

@echo off
%%p in (32 64) (
   for %%s in (c cpp) (
      if .%%s.==.c. (
         echo start gcc -m%%p -o libinteger-input-%%s%%p.o integer-input.%%s > err.%%p.%%s.txt
      ) else (
         echo start g++ -m%%p -o libinteger-input-%%s%%p.o integer-input.%%s > err.%%p.%%s.txt
      )
   )
)



Windows / Windows 7



Comments

Popular posts from this blog

ClipUp.exe 100% CPU at boot only - Microsoft Community

Error 8233 Microsoft Windows security -spp - Microsoft Community