.:: Jasa Membuat Aplikasi Website,Desktop,Android Order Now..!! | | Order Now..!! Jasa Membuat Project Arduino,Robotic,Print 3D ::.

Edit host file by Batch File

0 komentar


بِسْــــــــــــــــمِ اﷲِالرَّحْمَنِ اارَّحِيم
bismillaahirrahmaanirrahiim

السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ
Assalamu'alaikum warahmatullahi wabarakatuh

Update Host file with bath script



Today I got a mail from one of my senior is there a way by which we can add multiple address in host file with out consuming lot of time and my simple reply was we need to use batch file for that. They said ok do it but actually I have never done it before so I had no other option than Google.



I searched for Google but every time I got a lengthy result and comment on those results were not positive it worked for some people and for some people it doesn't. I was wondering If I can have a simplest way for this as my previous backup script.



So I decided if I can print few lines in host file and it worked.Now no need of writing a long batch script for editing host file.



Here is the command



echo 192.168.1.10 test.test.com>>c:\Windows\System32\drivers\etc\hosts



You can add as many line as you want to add and save the file as hostentry.bat

Let me explaint you meaning of each word here



Echo it will print the words written after it

192.168.1.10 Its the ip of the server

Test.test.com Its the dns name of the server

>> it save the printed data in given file

c:\Windows\System32\drivers\etc\hosts Host file location for printg the data



Needless to say that IP and domain name would get change as per your server detail

if your oprating system is not in c driver please chagne the drive latter as per needed.





Just run the batch file and you are done for updating your host entry.





Hope it was usefull for you.





Please let me know if you face any problem in it.


Update Contact :
No Wa/Telepon (puat) : 085267792168
No Wa/Telepon (fajar) : 085369237896
Email : Fajarudinsidik@gmail.com
NB :: Bila Sobat tertarik Ingin membuat software, membeli software, membeli source code, membeli hardware elektronika untuk kepentingan Perusahaan maupun Tugas Akhir (TA/SKRIPSI), Insyaallah Saya siap membantu, untuk Respon Cepat dapat menghubungi kami, melalui :

No Wa/Telepon (puat) : 085267792168
No Wa/Telepon (fajar) : 085369237896
Email: Fajarudinsidik@gmail.com


atau Kirimkan Private messanger melalui email dengan klik tombol order dibawah ini :

ٱلْحَمْدُ لِلَّهِ رَبِّ ٱلْعَٰلَمِين
Alhamdulilah hirobil alamin

وَ السَّلاَمُ عَلَيْكُمْ وَرَحْمَةُ اللهِ وَبَرَكَاتُهُ
wassalamualaikum warahmatullahi wabarakatuh


Artikel Edit host file by Batch File, Diterbitkan oleh scodeaplikasi pada Rabu, 24 September 2008. Semoga artikel ini dapat menambah wawasan Anda. Website ini dipost dari beberapa sumber, bisa cek disini sumber, Sobat diperbolehkan mengcopy paste / menyebar luaskan artikel ini, karena segala yang dipost di public adalah milik public. Bila Sobat tertarik Ingin membuat software, membeli software, membeli source code ,Dengan Cara menghubungi saya Ke Email: Fajarudinsidik@gmail.com, atau No Hp/WA : (fajar) : 085369237896, (puat) : 085267792168.

Tawk.to