Dvauction Posted May 11, 2006 Posted May 11, 2006 is there a way to edit a file on the image IE i need to have the WINDOWS\system32\drivers\etc\hosts file edited, i have tried replacing it via a .cmd under runonce but it does not want to find the file path for some reason, so is there a way to edit it pre install?
Yzöwl Posted May 11, 2006 Posted May 11, 2006 (edited) What failed command(s) did you use? and what if any messages did you get?Have you tried to replace the HOSTS file in \I386 when you create the CD?The more we know, the better we can provide meaningful help! Edited May 11, 2006 by Yzöwl
Dvauction Posted May 11, 2006 Author Posted May 11, 2006 del %systemroot%\WINDOWS\system32\drivers\etc\hostscopy %systemroot%\Install\AuctionConsole_Setup\hosts %systemroot%\windows\system32\drivers\etc\hostsare the lines that i get Specified Path cannot be found or whateverI finally found the file i wanted, wasn't where i thought it would be, but was the correct file, i will test it out in the morning thanks for the help
Bezalel Posted May 11, 2006 Posted May 11, 2006 Replace %SYSTEMROOT% with %SYSTEMDRIVE% in your command lines. What happens if you put the file in \$OEM$\$$\system32\drivers\etc\ on your CD
Gee Posted May 12, 2006 Posted May 12, 2006 del %systemroot%\WINDOWS\system32\drivers\etc\hostscopy %systemroot%\Install\AuctionConsole_Setup\hosts %systemroot%\windows\system32\drivers\etc\hostsYou don't need both lines.Omit the del command and just use the followingcopy /Y %systemdrive%\Install\AuctionConsole_Setup\hosts %systemroot%\system32\drivers\etc\hostsIf you really want, you can leave the del command in, but use del /q /f %systemroot%\system32\drivers\etc\hostsThe reason why you are getting errors is because %systemroot% = c:\Windows\But the way you have your syntax, you are sayingc:\windows\windows\system32\drivers\etc\hostsWhich is why you get a path not found.The c:\ will be subsituted with the correct drive letter when you use %systemroot%
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