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

Error 8233 Microsoft Windows security -spp - Microsoft Community

Replacement for Microsoft Model 1423 2.4GHz USB Wireless Mouse - Microsoft Community