Jump to content

Numlock


Recommended Posts


But you can't call exe's that arn't in the same directory as cmdlines.

@ djbe

Which 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 by Yzöwl
Link to comment
Share on other sites

Apart from the bottom one, which I've never tested, I have used all of them, different directories and names, and all have worked! :yes:

<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 by Yzöwl
Link to comment
Share on other sites

Woooooops :P

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.

:P srry! :blushing:

Edited by djbe
Link to comment
Share on other sites

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

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.

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\.default

default 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

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.

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...