Martin Zugec Posted June 23, 2005 Author Share Posted June 23, 2005 I agree with Dumpy, used it many times... However there is some problem when using it from cmdlines Link to comment Share on other sites More sharing options...
djbe Posted June 23, 2005 Share Posted June 23, 2005 (edited) See my post after this one... Edited June 23, 2005 by djbe Link to comment Share on other sites More sharing options...
Martin Zugec Posted June 23, 2005 Author Share Posted June 23, 2005 I am familiar with this, however it didnt work, dont know why Maybe the problem is I was testing it on NB and it is acting differently if you manipulate with numlock Link to comment Share on other sites More sharing options...
Yzöwl Posted June 23, 2005 Share Posted June 23, 2005 (edited) But you can't call exe's that arn't in the same directory as cmdlines.<{POST_SNAPBACK}>@ djbeWhich of these wont work!, (rundll32.exe is in system32 and regedit is in WINDOWS) and some of the regs infs and commands aren't either:Cmdlines.txt[Commands]"rundll32 setupapi,InstallHinfSection DefaultInstall 128 services.inf""rundll32 setupapi,InstallHinfSection DefaultInstall 132 install\MyInfs\services.inf""regedit /s services.reg""regedit /s install\MyRegs\services.reg""services.cmd""install\MyCmds\services.cmd"<Edit>corrected addition of regedit32 as there is no such executable</Edit> Edited June 23, 2005 by Yzöwl Link to comment Share on other sites More sharing options...
djbe Posted June 23, 2005 Share Posted June 23, 2005 (edited) See my post after this one... Edited June 23, 2005 by djbe Link to comment Share on other sites More sharing options...
Yzöwl Posted June 23, 2005 Share Posted June 23, 2005 (edited) Apart from the bottom one, which I've never tested, I have used all of them, different directories and names, and all have worked! <Edit>Just to add, no additional files added to $OEM$Also the unattended guide uses these examples".\Folder\batch.cmd""REGEDIT32.EXE /S tweaks.reg"The first isn't in $OEM$ but a subdirectory of it.The second exe doesn't exist and definitely isn't in $OEM$You only need to give yout path relative to the $OEM$.Oh and whilst on the subject, I have used reg.exe from batches at T39 and still use at T13 called from svcpack.inf</Edit> Edited June 23, 2005 by Yzöwl Link to comment Share on other sites More sharing options...
djbe Posted June 23, 2005 Share Posted June 23, 2005 (edited) Woooooops my bad, I understood the guide incorrectly:CMDLINES.TXT is a VERY limited commandline interface. This means that MOST traditional DOS commands are not available, however external commands (REGEDIT32.EXE , REG.EXE, etc. ) are available. srry! Edited June 23, 2005 by djbe Link to comment Share on other sites More sharing options...
Yzöwl Posted June 23, 2005 Share Posted June 23, 2005 Does anyone know if REGEDIT32.EXE works then, since it doesn't exist, it probably shouldn't, although it's been in the guide for a long time now, and I don't recall many complaints.Alanoll... Link to comment Share on other sites More sharing options...
sleepnmojo Posted June 24, 2005 Share Posted June 24, 2005 When a new ueser is created, the registry settings from .DEFAULT are copied to CU. If you want some settings to affect everyone, .default is the best place to put it ... as long as no other accounts have been created. When cmdlines.txt is run, there are no accounts other than .default.<{POST_SNAPBACK}>I know what .default is, and it is not what you describe. You are confusing .default with the default user, like so many other people on this board. They are two very different things. There really needs to be a FAQ about this somewhere. I'm getting tired of seeing it everywhere..default - login session, located at HKU\.defaultdefault user - located at %PATHTODOCSANDSETTINGS%\Default User (usually), needs to be loaded in order to edit.Please people for the love of God, please understand this.I talk about it more in this thread<{POST_SNAPBACK}>With all due respect, you're wrong. They're the same thing. Go ahead and try putting an entry in HKU\.Default\ (preferably in Software\Microsoft\Windows\CV\Run\ because certain types of accounts don't import all of the registry keys). Afterwards, create a new account. Log into that account and you'll notice that the registry info that you put in HKU\.Default will now be in HKCU. If you don't see your string there, you've done something wrong. Now, do the same thing, except instead of putting an entry in the registry, try putting a file in \Documents and Settings\Default User\. Create an account. Log into that account. Now that file should be located in %userprofile%\. If you don't see the file, you've done something wrong.If that's not enough proof for you, I will gladly provide you with a video in which I will execute all of the aforementioned commands. That is, under the condition that you will provide me a host for the said video.<{POST_SNAPBACK}>OK, here is your test, first you have to load the default user registry hive (I call it default). Import this reg file, and restart.Windows Registry Editor Version 5.00[HKEY_USERS\default\Software\sleepnmojo]"b"="""is"="right"[HKEY_USERS\default\Software\sleepnmojo\larry][HKEY_USERS\.DEFAULT\Software\sleepnmojo]"a"="""is"="wrong"[HKEY_USERS\.DEFAULT\Software\sleepnmojo\bob]Create a new user, and login. Which one does it use? Now prove me wrong. Link to comment Share on other sites More sharing options...
Dumpy Dooby Posted June 25, 2005 Share Posted June 25, 2005 (edited) Edited June 25, 2005 by Dumpy Dooby 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