durex Posted December 29, 2004 Posted December 29, 2004 Exactly what commands does the cmdlines.txt accept?Everything a normal batch file can?System Variables?Calls to VBScripts?Calls to executables?Thanks!
jbm Posted December 29, 2004 Posted December 29, 2004 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
Alanoll Posted December 29, 2004 Posted December 29, 2004 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
durex Posted December 29, 2004 Author Posted December 29, 2004 @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!
jbm Posted December 30, 2004 Posted December 30, 2004 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?
MCT Posted December 30, 2004 Posted December 30, 2004 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
totoymola Posted December 30, 2004 Posted December 30, 2004 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.
Alanoll Posted December 30, 2004 Posted December 30, 2004 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.
jbm Posted December 30, 2004 Posted December 30, 2004 Yes, Thanks guys I've learned something today.I wonder where I got the idea that the commands had to be in thesame folder.
MCT Posted December 30, 2004 Posted December 30, 2004 probly from here jbm http://unattended.msfn.org/xp/hkcu_registry.htm
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