kiran Gopal
kiran Gopal

Reputation: 450

Bat file exits while execution

I have the following bat file. It exits after module load ria/node.

@echo on
SET path =%PATH%; some path
SET MODULEPATH=SOME PATH
module load ria/node
IF %ERRORLEVEL% NEQ 0 (
ECHO ERROR 
) 
npm config set proxy some url

enter image description here

Upvotes: 0

Views: 102

Answers (1)

Code Gorilla
Code Gorilla

Reputation: 971

Rather than module load ria/node use the command CALL module load ria/node. Calling programs from a batch file quitter often needs CALL to make the batch file wait for them to exit.

Upvotes: 1

Related Questions