December 29, 200421 yr Exactly what commands does the cmdlines.txt accept?Everything a normal batch file can?System Variables?Calls to VBScripts?Calls to executables?Thanks!
December 29, 200421 yr cmdlines.txt is not a batch file. You list filesthat you want to run for example if you have to batch filesinstall.bat and fix.bat then your cmdlines text would look like[COMMANDS]"install.bat""fix.bat"you can allso include exe files this is all in the guideJim M
December 29, 200421 yr CMDLINES.TXT is actually a VERY limited commandline interpreter. The closest similarity of it is the RUN box in windows. But unlike the RUN box, a few file associations are not created, and so depending on the file you have to use the full execution path instead of the shorter version... ie.msiexec.exe /i setup.msivssetup.msi
December 29, 200421 yr Author @jbmI am well aware of the guide points out... but what youve stated is the only thing the guide outlines, which is not the only function the cmdlines.txt provides as I knew and as Alanoll touches on...@AlanollThanks for the response... do you know of anything out there that outlines what commands it doesnt and/or doesnt support? I know you can import reg files as well using REGEDIT /S regfile.reg..thanks again!
December 30, 200421 yr I thought that all the files that cmdlines.txt ran had to be in the same folderas cmdlines.txt. I run two files in mine, regfile.bat and install.bat plus about6 others. Are you saying instead of putting"regfile.bat" I could put "regedit /s changes.reg"But what about the requirement stated above? Or am I missing something?
December 30, 200421 yr yes jbm& the files dont have 2 be in the same folder either, u just have to use . (periods) to point to the file insteadexample[COMMANDS]"REGEDIT /S ..\Install\Reg\CU_regtweaks.reg""..\Install\Xplode\Xplode.exe"would work if your directory structure is:Root........$OEM$........Install.................Reg.................Xplode
December 30, 200421 yr the files dont have 2 be in the same folder either, u just have to use . (periods) to point to the file insteadexampleCODE[COMMANDS]"REGEDIT /S ..\Install\Reg\CU_regtweaks.reg""..\Install\Xplode\Xplode.exe"Hmmm.. That makes sense. Just like in the command CD.. in DOS.
December 30, 200421 yr like I said, a very LIMITED command line. Sorta like a runbox.There are a FEW DOS commands that work, but MOST do not. REGEDIT isn't a DOS command, it's a program located in System32.You can call anything you want from CMDLINES.TXT, whether or not it will run is dependent on the requirements on the system as Windows isn't fully functional, and whether or not you put the correct path (unless the program is already in the %PATH% like REGEDIT) or whether it's an internal DOS functions or now (CD, FOR, IF, CALL, ECHO, TITLE, etc.). For simplicifty, just think of it like the runbox in Windows, as that's almost what it is.
December 30, 200421 yr Yes, Thanks guys I've learned something today.I wonder where I got the idea that the commands had to be in thesame folder.
Create an account or sign in to comment