MSFN Forum: cmdlines.txt: variables valid for how long? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

cmdlines.txt: variables valid for how long? Rate Topic: -----

#1 User is offline   my2001 

  • Member
  • PipPip
  • Group: Members
  • Posts: 260
  • Joined: 31-May 04

  Posted 22 October 2004 - 01:07 PM

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! :)


#2 User is offline   jdoe 

  • Advanced Member
  • PipPipPip
  • Group: Banned
  • Posts: 314
  • Joined: 02-May 04

Posted 22 October 2004 - 02:32 PM

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

#3 User is offline   my2001 

  • Member
  • PipPip
  • Group: Members
  • Posts: 260
  • Joined: 31-May 04

Posted 23 October 2004 - 05:06 AM

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. :)

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy