Computing.Net > Forums > Disk Operating System > batch variable registry

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Click here to start participating now! Also, check out the New User Guide.

batch variable registry

Reply to Message Icon

Name: bob
Date: August 17, 2003 at 00:04:06 Pacific
OS: win98/dos
CPU/Ram: 850-512
Comment:

I have a random generated number that is a variable(randname.exe), I have exported a registry file ( hkey.......computername="???") how can I get a batch to insert the random variable into the reg file computername. I'm rolling out 50 computers a day and the image being used for the computer burnin is Win98 and I have duplicate names on boot that require a keystroke, I have this fully automated except for this problem.And I need the network connection to get the time from the server to update the BIOS time with a seperate program, unless there is a way to extract time off of the ghost image(sorry 2 questions)



Sponsored Link
Ads by Google

Response Number 1
Name: bob
Date: August 17, 2003 at 00:23:24 Pacific
Reply:

Forgot to add using PXE to boot to ghost 7.5 and multicasting image on. Image is being used just for the burn in software( Using 98lite just to keep image size down). And setup of Automated BIOS Flashing and settings setup.


0

Response Number 2
Name: JackG
Date: August 17, 2003 at 02:44:41 Pacific
Reply:

If you have exported the Registry key entry into say somefile.REG and it has the proper REG file header in it, then you could just add to you batch file:

EXPLORER somefile.REG

and it will add it. The problem is that this produces several prompts that require responses. There should be a few options that can avoid them, or you could use some other program to run the *.REG file.


0

Response Number 3
Name: bob
Date: August 17, 2003 at 09:08:24 Pacific
Reply:

Just how does the explorer command insert the variable into the reg file, I can use the regedit in does to import it back in that's not the problem , my problem is how do I insert a random variable into a text file.(code would be nice:))


0

Response Number 4
Name: borelli34
Date: August 18, 2003 at 00:00:20 Pacific
Reply:

a batch file can be made that would run under windows with the same prompts but the problem is that under DOS it wouldn't work. I'm I missing something or not?

borelli34


0

Response Number 5
Name: mbackus
Date: August 18, 2003 at 05:00:07 Pacific
Reply:

Could you just create a search(FIND) of the .reg file for the computername then insert the variable?? then you would just use regedit in DOS


0

Related Posts

See More



Response Number 6
Name: Brian HANLON
Date: August 18, 2003 at 20:51:01 Pacific
Reply:

Have a look at LISTMOD.ZIP at URL:
http://riverbbs.net/files/output/7702.Html

LISTMOD.ZIP Size: 1829 Date: 1994-05-29
LISTMOD.COM transforms a given list, line by line, into a BAT file with the required commands.

It will read an input TEXT file, and by various WORD-LEVEL manipulations, output a text (BAT) file with added boilerplate text, inserting any/all words from the original file.
You can alter the ordering of the input words on a line-by-line basis, and LISTMOD even has the ability to insert sequential number of any reasonable length into the output stream.
It takes a little bit to get used to the syntax used, but is well worth the effort. I've been using LISTMOD for 6 years, and regard it as a "must-have" for my toolkit.
Baldy.


0

Response Number 7
Name: UJRHO
Date: September 21, 2003 at 18:25:38 Pacific
Reply:

@ECHO OFF
SET YOUR_VARIABLE=1

ECHO Writing REG header . . .
> YOUR_REG.REG ECHO Windows Registry Editor Version 5.00
>>YOUR_REG.REG ECHO.
>>YOUR_REG.REG ECHO [HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run]
>>YOUR_REG.REG ECHO "Synchronization Manager"="%YOUR_VARIABLE%"


ECHO Closing REG file

SET FILE=
SET NAME=
SET EXT=
ENDLOCAL
:END


0

Sponsored Link
Ads by Google
Reply to Message Icon

HD not found, help! A beginner question



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: batch variable registry

removing quotes from batch variable www.computing.net/answers/dos/removing-quotes-from-batch-variable/12594.html

dos batch variable name www.computing.net/answers/dos/dos-batch-variable-name/7949.html

Batch %variables% www.computing.net/answers/dos/batch-variables/15326.html