|
Answer» Why do .bat files I have written work in Windows but not in DOS when I have booted from a boot CD?
How do I MAKE them run properly? Do I NEED new command interpreters on the CD?
I have full control over the boot cd (I can add/remove/alter files).
This is driving me insane!
Thanks, -darrylPost an example of one that doesn't work in Dos...
BTW which version of Dos or what TYPE of bootCD is this ? ?Likely the PATH statement. Alter it so the directory CONTAINING the .bat files are on the path or enter the path on the command line. for example, if the .bat files are in c:\windows, they are automatically in the path under windows. From real DOS the command would be c:\windows\yourfile.bat You have to tell DOS where the files are located, even in windows if they are in a directory that is not on the PATH.The type of boot CD that I am using is a network boot CD. It is used to install the basic network drivers so that the machine can image over the network. I have several different types of computers and 6 different network CARDS in them (total across all machine types). As of now, every time I use this boot CD, i have to tell it which driver to load (because it is different depending on which machine I am using it in). What I want to do is have it automatically detect the type of machine so that I don't have to tell it (this gets tedious using 50+ machines...)
The nice thing is, all of these machines can be distinguished by their processor speed. I have a utility that returns the processor speed. What I am having a great deal of difficulty doing, however, is getting that returned value into a variable so that I can evaluate it to load the appropriate drivers.
The program runs like this:
C:\> processorspeed.exe 2600MHz CoreDuo
I need to get the "2600MHz CoreDuo" part into a variable, so that I can use if-then statements to get the CD to load the right drivers.
Any ideas? Please?
Thanks all, -darryl
|