"Exec" to a specific folder

From an NSIS script (e.g., in C:\nsis\) I execute an external program (let something.bat) with some parameters:

Exec '"Z:\draft\something.bat" $param1 $param2'

something.batsupported for renaming a directory C:\nsis. My question is: how can I say Execrun something.batinside Z:\draft\, not C:\nsis\? Because it cannot rename the directory otherwise.

Thank.

+3
source share
1 answer

You can use SetOutPath to set the current working directory. I think this should do what you want.

NSIS , , SetOutPath ( $OUTDIR) Exec.

4.9.1.2 Exec

Exec
. , . $OUTDIR .

+2

Source: https://habr.com/ru/post/1748547/


All Articles