Jump to content

Recommended Posts

Posted

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?


Posted (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 by Yzöwl
Posted

del %systemroot%\WINDOWS\system32\drivers\etc\hosts

copy %systemroot%\Install\AuctionConsole_Setup\hosts %systemroot%\windows\system32\drivers\etc\hosts

are the lines that i get Specified Path cannot be found or whatever

I 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

Posted

Replace %SYSTEMROOT% with %SYSTEMDRIVE% in your command lines. What happens if you put the file in \$OEM$\$$\system32\drivers\etc\ on your CD

Posted
del %systemroot%\WINDOWS\system32\drivers\etc\hosts

copy %systemroot%\Install\AuctionConsole_Setup\hosts %systemroot%\windows\system32\drivers\etc\hosts

You don't need both lines.

Omit the del command and just use the following

copy /Y %systemdrive%\Install\AuctionConsole_Setup\hosts %systemroot%\system32\drivers\etc\hosts

If you really want, you can leave the del command in, but use

del /q /f %systemroot%\system32\drivers\etc\hosts

The reason why you are getting errors is because %systemroot% = c:\Windows\

But the way you have your syntax, you are saying

c:\windows\windows\system32\drivers\etc\hosts

Which is why you get a path not found.

The c:\ will be subsituted with the correct drive letter when you use %systemroot%

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...