Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations John Tel on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy a Host File in C:\WINDOWS\system32\drivers\etc

Status
Not open for further replies.

lmagana

IS-IT--Management
Aug 22, 2006
1
US
Hi...

recently we're administrating a SMS2003 Server, and need to copy a Host File in our Notebooks, is that possible ??
how can i create my package ?

Tks

Mariano
 
Hi,

we do it with batch-files. Create a file "hostcopy.bat" and put these lines in it:
xcopy <hostfile> "C:\WINDOWS\system32\drivers\etc" /y
exit

Then create the package - for the program you've to press the Browse-Button on the command-line field and select "All Files". Use your Batch-File.
Under "Environment" you've to set the program to run with administrative rights and that it requires a drive letter.
Everything else runs as like with any other program.

Did it work?

Friendly regards,
Gerhard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top