Jump to content

cmdlines.txt: variables valid for how long?


Recommended Posts

Unfortunately I don't have the time to test it so I dare to ask:

Assume my cmdlines.txt is as follows:

[COMMANDS]
"batch1.cmd"
"batch2.cmd"

Will propietary variables (i.e. set command) definied in batch1.cmd for the first time still be available when batch2.cmd is run?

thx! :)

Link to comment
Share on other sites


NO

You can SET variables one time in command.cmd and call your batches

cmdlines.txt

[COMMANDS]
"command.cmd"

command.cmd

set var=variable
call batch1.cmd
call batch2.cmd

BTW it was a 10 seconds test so please don't say you didn't have the time to do it

Link to comment
Share on other sites

thx.

and sth about time: I asked about _cmdlines.txt_ which is run during windows installation as u certainly know. And I doubt testing this will last only 10 seconds. *hehe* I know how batch files work but didn't know for how long environment in cmdlines.txt in particular is saved. I was unsure about if cmdlines.txt is like a container/master batch file and everything in it is available everywhere in it. So unfortunately u obviously performed a test under normal circumstances for me whose result I already knew and didn't help answer my question. ;) But don't worry ... I've found the desired answer already. :)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...