Jump to content

Copying I386


Recommended Posts


put this line in a .cmd file

xcopy.exe %CDROM%\i386 /e /k /h /i /y %SystemRoot%\i386

also these in a .reg file

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]

"SourcePath"="C:\\windows\\"

"ServicePackSourcePath"="C:\\windows\\"

"Installation Sources"=hex(7):43,00,3A,00,5C,00,57,00,49,00,4E,00,44,00,4F,00,\

57,00,53,00,5C,00,69,00,33,00,38,00,36,00,00,00,\

00,00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion]

"SourcePath"="C:\\windows\\i386\\"

:)

Link to comment
Share on other sites

put this line in a .cmd file

xcopy.exe %CDROM%\i386 /e /k /h /i /y %SystemRoot%\i386

also these in a .reg file...

:( the xcopy command gives me the following error:

File not found - i386
0 File(s) copied

Its as if the %CDROM% variable is not being recognized.

Also, shouldn't %SystemRoot% be %Systemdrive% ?

Link to comment
Share on other sites

I don't think %cdrom% is a native system variable.  Try substituting the drive letter of your cd-rom for %cdrom% in your .cmd file.

  - Ravashaak

"substituting the drive letter of your cd-rom for %cdrom%" will work if there always is a known drive letter for a particular machine. But for some machines its D: and for some its E:, etc, depending on the number of hard drives and/or partitions installed. I'd like the install to be machine configuration independant.

One would think there is a system variable.

Link to comment
Share on other sites

here is what I use for the batch file to see my cd rom no matter what the drive letter.

First make a txt file called cdxp123.txt

and put it at the root of the cd. this txt file will be blank it is the file name we will be looking for.

now in your batch file as the first thing to run is this

IF EXIST D:\cdxp123.txt set CDROM=D:

IF EXIST E:\cdxp123.txt set CDROM=E:

IF EXIST F:\cdxp123.txt set CDROM=F:

IF EXIST G:\cdxp123.txt set CDROM=G:

IF EXIST H:\cdxp123.txt set CDROM=H:

IF EXIST I:\cdxp123.txt set CDROM=I:

IF EXIST J:\cdxp123.txt set CDROM=J:

now the %CDROM% will work.

Hope this helps.

I like to use this cause I install all the software off the cd instead of having it copied to the hard drive and then installed.

Link to comment
Share on other sites

here is what I use for the batch file to see my cd rom no matter what the drive letter.

First make a txt file called cdxp123.txt

and put it at the root of the cd. this txt file will be blank it is the file name we will be looking for.

now in your batch file as the first thing to run is this

IF EXIST D:\cdxp123.txt set CDROM=D:

IF EXIST E:\cdxp123.txt set CDROM=E:

IF EXIST F:\cdxp123.txt set CDROM=F:

IF EXIST G:\cdxp123.txt set CDROM=G:

IF EXIST H:\cdxp123.txt set CDROM=H:

IF EXIST I:\cdxp123.txt set CDROM=I:

IF EXIST J:\cdxp123.txt set CDROM=J:

now the %CDROM% will work.

Hope this helps.

I like to use this cause I install all the software off the cd instead of having it copied to the hard drive and then installed.

:) It worked perfectly. Thanks! :)

Link to comment
Share on other sites

You also can use this short one..

FOR %%d IN (d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\win51ip.SP2 SET CDROM=%%d

but remember to have "win51ip.SP2" in your cd...

Also systemroot is C:\Windows or C:\WINNT.. and systemdrive is C:\ :D

Link to comment
Share on other sites

You also can use this short one..

FOR %%d IN (d: e: f: g: h: i: j: k: l: m: n: o: p: q: r: s: t: u: v: w: x: y: z:) DO IF EXIST %%d\win51ip.SP2 SET CDROM=%%d

but remember to have "win51ip.SP2" in your cd...

Also systemroot is C:\Windows or C:\WINNT.. and systemdrive is C:\      :D

:thumbup

Thanks!

Much more elegant as a solution. I tested it this afternoon and it does work. The only difference is that I check for %%d\setup.exe, since that always must be present on any Windows install CD.

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