996 Posted July 11, 2004 Share Posted July 11, 2004 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 More sharing options...
Denney Posted July 12, 2004 Author Share Posted July 12, 2004 @]Bonkers[: If the cmd file and inf file are in the same directory, change you .cmd file to this:@ECHO OFFrundll32 setupapi,InstallHinfSection DefaultInstall 128 .\custom.infEXITTake note of the .\custom.inf Link to comment Share on other sites More sharing options...
fillalph Posted July 13, 2004 Share Posted July 13, 2004 Thanks for the tip Rave. I tried an install and noticed that it didn't work. I looked over your code and decided to add that line.Thanks]Bonkers[ Link to comment Share on other sites More sharing options...
richy759 Posted August 3, 2004 Share Posted August 3, 2004 @ECHO OFFstarts common.cmd (adds common RunOnceEx entries)If %computername%==Comp1 GOTO Computer1If %computername%==Comp2 GOTO Computer2:Computer1starts Computer1.cmd (adds computer1 specfic RunOnceEx entries)Goto END:Install2starts Computer2.cmd (adds computer2 specific RunOnceEx entries)GOTO End:ENDECHO DoneEXITI 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 thisI 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 appreciatedCheersRich Link to comment Share on other sites More sharing options...
Alanoll Posted August 3, 2004 Share Posted August 3, 2004 I think that was a demonstrative batch file....@ECHO OFFcall common.cmdIf %computername%==Comp1 GOTO Computer1If %computername%==Comp2 GOTO Computer2:Computer1call Computer1.cmdGoto END:Computer2call Computer2.cmdGOTO End:ENDECHO DoneEXITSHould 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 More sharing options...
prathapml Posted August 3, 2004 Share Posted August 3, 2004 Either you can try those methods outlined above (for full automation), or make a multi-boot CD which you will manually choose what PC's configuration you want to install. 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