2014-12-18 11 views
0

나는이 질문에 대해 약간의 변형이 있으며 해결책을 찾기 위해 살펴 보았지만 현재 어떤 행운을 빕니다. 한 명령 파일에서 일련의 설치 (4)를 실행하려고 시도하지만 첫 번째 설치 만 실행합니다.단일 cmd 파일에서 여러 번 호출하기

나는 같은 내용으로 메인 cmd를 파일을 가지고 :

call "Architecture 2015\Install.cmd" 
call "Inventor 2015\Inventor2015_Install.cmd" 
call "Mechanical 2015\Mechanical2015_Install.cmd" 
call "Civil 2015\Civil2015_Install.cmd" 

그 cmd를 각 파일이 포함 : 내가 사용 해봤

"<path>\Setup.exe" /W /q /I Img\Autocad Architecture 2015.ini /language en-us 

start /wait cmd /k call "Architecture 2015\Install.cmd" 

각각에 있지만 여전히 첫 번째 실행 만합니다. 정확한 시간을 사용할 수없는 이유는 네트워크를 통해 항상 일관성있는 것은 아니기 때문입니다. 어떤 도움을 주시면 감사하겠습니다.

답변

0

문제는 4 개의 .cmd 파일이 프로그램을 시작하고 Setup.exe가 끝나기를 기다리지 않고 종료한다는 것입니다. 이것은 다음과 같은 시나리오가 발생할 수 있습니다

call first cmd -> 
    call first setup -> 
    exit without waiting setup to finish -> 
    main script is notified that first cmd is done -> 
call second cmd -> 
    start setup -> error (impossible to run two MS install at the same time) -> 
    exit -> 
call third cmd -> 
    same as second cmd -> 
call last cmd -> 
    same -> 
done after one installations and three errors 

시도 "<path>\Setup.exe" /W /q /I Img\Autocad Architecture 2015.ini /language en-us 대신 call "<path>\Setup.exe /W /q /I Img\Autocad Architecture 2015.ini /language en-us"를 사용하여.

관련 문제