pauledavey Posted May 20, 2004 Share Posted May 20, 2004 Could someone please advise why using CMD files is better than using BAT and provide links or some sample code on what different commands there are in a cmd file.I use a cmd file currently in my unattend as described all over this forum to populate my guirunonceex keys.Any advice on this would be very appreciated.Many thanksPaul Link to comment Share on other sites More sharing options...
Alanoll Posted May 20, 2004 Share Posted May 20, 2004 I don't think there realy is any difference.CMD are typically found more on NT machines, while BATs are DOS/9x machines. It could jsut be Microsoft trying to get away from DOS. The commands work in both, and XP can run both, but 98 can't run CMD unless you rename it to BATEDIT:: Just found thisThere doesn't appear to be any difference until you use a shortcut to launch the program, then .bat files get COMMAND.COM as their command processor, and so are running in an environment similar to DOS 5 with no NT extensions, but if the extension is .cmd, then the shortcut launches the program with CMD.EXE and all the NT extensions are present and functional Link to comment Share on other sites More sharing options...
pauledavey Posted May 21, 2004 Author Share Posted May 21, 2004 Thanks Alanoll Link to comment Share on other sites More sharing options...
CuBie Posted May 21, 2004 Share Posted May 21, 2004 I've allways wondered about that!Thanks for the information!Later, Chris. Link to comment Share on other sites More sharing options...
Bâshrat the Sneaky Posted May 21, 2004 Share Posted May 21, 2004 I've allways wondered about that!Thanks for the information!Later, Chris.Me too! Link to comment Share on other sites More sharing options...
big_gie Posted May 21, 2004 Share Posted May 21, 2004 I was using .bat files with my first Unattended CD and didn't had any problem. Now I switched to .js so really less problem Link to comment Share on other sites More sharing options...
Bâshrat the Sneaky Posted May 21, 2004 Share Posted May 21, 2004 I was using .bat files with my first Unattended CD and didn't had any problem. Now I switched to .js so really less problem huh? explain yourself plz... (or am I being such a n00b?) Link to comment Share on other sites More sharing options...
big_gie Posted May 21, 2004 Share Posted May 21, 2004 I just said that my first CD version had .bat files but I switched to JScript (.js) because their is no black window, you can make everything with it, and it looks like c++ (or Visual Basic if you use VBScript .vbs) wich is really nicer than batch... Link to comment Share on other sites More sharing options...
RyanVM Posted May 21, 2004 Share Posted May 21, 2004 I just said that my first CD version had .bat files but I switched to JScript (.js) because their is no black window, you can make everything with it, and it looks like c++ (or Visual Basic if you use VBScript .vbs) wich is really nicer than batch...Where could one get more info on that? Do you use them at the T13 mark or just the GuiUnattended part? Link to comment Share on other sites More sharing options...
big_gie Posted May 22, 2004 Share Posted May 22, 2004 Look at this site for info. If you want more you could search google for Windows Scripting Host (WSH) witch is the scripting engine.I use them at T-12 (cmdlines.txt), RunOnceEx, and also tryed it at t-9 (winnt.sif's SetupParams) with working results (except for t-9; programs installed then will not function correctly) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now