Jump to content

Multiple PC Configurations


Recommended Posts

Here is a rough idea:

Now I've seen it was possible to assign a different computer name depending on the mac address. Wouldn't it be possible to distingush between the two pcs by their mac addresses and then have a batch file determine the cd drive letter and copy over one of either 2 install folders depending on the mac address... ??

Link to comment
Share on other sites


@]Bonkers[: If the cmd file and inf file are in the same directory, change you .cmd file to this:

@ECHO OFF
rundll32 setupapi,InstallHinfSection DefaultInstall 128 .\custom.inf
EXIT

Take note of the .\custom.inf

Link to comment
Share on other sites

  • 3 weeks later...

@ECHO OFF
starts common.cmd (adds common RunOnceEx entries)
If %computername%==Comp1 GOTO Computer1
If %computername%==Comp2 GOTO Computer2
:Computer1
starts Computer1.cmd (adds computer1 specfic RunOnceEx entries)
Goto END
:Install2
starts Computer2.cmd (adds computer2 specific RunOnceEx entries)
GOTO End
:END
ECHO Done
EXIT

I am trying to use this method of having multiple runonceex.cmd although it seems troublesome.

should :Install2 not be :Computer2?

should the starts command in fact be just start?

I am not sure as I am pretty new to all this

I cannot seem to get a simple cmd file to run in windows which emulates the function of this setup either, for exampl having fake common.cmd, Computer1.cmd and Computer2.cmd files.

any help will be much appreciated

Cheers

Rich

Link to comment
Share on other sites

I think that was a demonstrative batch file....

@ECHO OFF
call common.cmd
If %computername%==Comp1 GOTO Computer1
If %computername%==Comp2 GOTO Computer2
:Computer1
call Computer1.cmd
Goto END
:Computer2
call Computer2.cmd
GOTO End
:END
ECHO Done
EXIT

SHould work fine. As a side note, it does not matter what COmptuer2 or Install2 as long as teh GOTO tells it the right place to go. However, you will need to define COMPUTERNAME somehow

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