windows - Placeholders in batch files -


are people able set placeholders in batch files , reference data in other scripts?

for example if have batch file set project number in.

%project number%  set project number=aa00xxxx 

and want use placeholder prompted in autocad lisp routine or script.

i'm assuming reference file location, f:\blah\blah\blah test.bat not sure if physically possible therefore go batch , grab figure.

set puts variable environment. program (set part of cmd) , programs started in console copy of parent's program's environment. if autocad started after set issued , same console can access it's environmental variables. see set /?.

setx system, explorer notices changes, new programs started explorer have changes. see setx /?.

use call statement treat batch function. see call /?.


Comments

Popular posts from this blog

java - Spring Data JPA: Why findOne(id) executing delete query internally? -

python - Mongodb How to add addtional information when aggregating? -

java - Incorrect order of records in M-M relationship in hibernate -