MSFN Forum: cmdlines.txt not executed? - MSFN Forum

Jump to content



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

cmdlines.txt not executed? Rate Topic: -----

#1 User is offline   bomek 

  • Group: Members
  • Posts: 3
  • Joined: 01-September 04

Posted 01 September 2004 - 09:42 AM

I've setup a unattended Windows 2000 cd and everything seem fine. Except one thing, cmdlines.txt is not read at all.

Here is where i put the file:
G:\I386\$OEM$\cmdlines.txt

Even if i just do that, it don't work:
[COMMANDS]
"echo hello"
"pause"


Here is a part of my winnt.sif

[Unattended]
	UnattendMode = FullUnattended
	UnattendSwitch = Yes
	OemPreinstall = Yes
	OemSkipEula = Yes
	FileSystem = *
	WaitForReboot = No
	TargetPath = "\WINNT"
	DriverSigningPolicy = Ignore
	NonDriverSigningPolicy = Ignore
	Hibernation = No


Anyone run into the same thing?

Thanks!


#2 User is offline   Tsunami 

  • Member
  • PipPip
  • Group: Members
  • Posts: 292
  • Joined: 05-March 04

Posted 01 September 2004 - 10:05 AM

You have to run another batch file from cmdlines.txt. cmdlines.txt is not a batch file on it's own, it can only run other programs.

#3 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 01 September 2004 - 10:53 AM

Tsunami is correct in this case. The echo and pause are part of the shell, so they shouldn't run. To run them either throw them in a cmd or bat file, or put cmd /c in front of each command.

#4 User is offline   Alanoll 

  • CODE tags people, CODE tags!
  • Group: Patrons
  • Posts: 5,496
  • Joined: 25-September 03

Posted 01 September 2004 - 01:12 PM

Let's not forget the obvious, that if you're instlaling from CD, and booting FROM CD, then $OEM$ needs to be in the root of the CD.

However, you can use CMDLINES.TXT like a command prompt, but they need to be external commands (regedit , applicaiton installs , cmd.exe)

#5 User is offline   bomek 

  • Group: Members
  • Posts: 3
  • Joined: 01-September 04

Posted 02 September 2004 - 01:23 AM

Well, for the "pause", it was taken from this document (but it's for NT4):

My current cmdlines.txt contain:
[COMMANDS]
"./logon.cmd"
"./ie6sp1.cmd"
"./mdac.cmd"
"./directx9.cmd"
"./dotnet.cmd"
"./wmp.cmd"


So, the problem was cause my $OEM$ is in the i386 dir instead of the root??

Thanks a lot!

#6 User is offline   sleepnmojo 

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 472
  • Joined: 02-March 04

Posted 02 September 2004 - 06:22 AM

If you do network installs, then $OEM$ goes in the i386 folder, otherwise it goes along side it, ie cdroot. The best thing to set it up for both, so both folders are in both locations.

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