SlideShare a Scribd company logo
Using Windows Batch in command prompt. - Call this program
Create a batch file that when executed will display the following. Include a pause between each
command
1 - For the current computer find the path that is used to search for executable programs.
2 - Find fiu.edu's ip address.
3 - Show the active connections in the current computer
4 - Find the routers used to reach google.com
5 - The IP address of the current computer
Do the same above with Linux Terminal Mode
Solution
Create a text file in desktop. Rename it using .bat extension. Open it with note pad and type the
following command there:
ECHO OFF
1) dir /s /b *.exe
PAUSE
2) ping , where is the computer name or domain name
PAUSE
3) when the cmd opens type - netstat -a
PAUSE
4) ping google.com
PAUSE
5) on cmd window type- ipconfig
PAUSE
save the file.

More Related Content

DOC
Arp Dan Ipconfig Syntax
PPTX
Pace IT - Command Line Networking
PDF
Boost your network troubleshooting skills with Top Usefeul IP Commands for wi...
PDF
Top IP Commands for Windows : Boost your network troubleshooting skills with ...
PDF
Explore Top IP Commands for Windows - InfosecTrain.pdf
PDF
𝐓𝐨𝐩 𝐈𝐏 𝐂𝐨𝐦𝐦𝐚𝐧𝐝𝐬 𝐟𝐨𝐫 𝐖𝐢𝐧𝐝𝐨𝐰𝐬
PDF
Top Useful IP Commands for Windows.pdf
PDF
10 windows 7 commands every administrator should know
Arp Dan Ipconfig Syntax
Pace IT - Command Line Networking
Boost your network troubleshooting skills with Top Usefeul IP Commands for wi...
Top IP Commands for Windows : Boost your network troubleshooting skills with ...
Explore Top IP Commands for Windows - InfosecTrain.pdf
𝐓𝐨𝐩 𝐈𝐏 𝐂𝐨𝐦𝐦𝐚𝐧𝐝𝐬 𝐟𝐨𝐫 𝐖𝐢𝐧𝐝𝐨𝐰𝐬
Top Useful IP Commands for Windows.pdf
10 windows 7 commands every administrator should know

Similar to Using Windows Batch in command prompt. - Call this programCreate a.pdf (20)

PPTX
Batch FIles
PDF
Batch File Programming
DOCX
111
DOCX
111
DOC
To Get To The Command Prompt In Windows Xp Go To
DOC
CMD Command
PPTX
Batch programming and Viruses
PDF
amrapali builders @@ hacking with basic command.pdf
DOCX
Command line
PDF
nwlab-ex1.pdf
PPTX
Command.pptx presentation
PDF
Wintel commands
PDF
Filters & Vi Editor
PPTX
PPTX
98 366 mva slides lesson 5
PDF
Hhs en02 windows_and_linux
DOCX
PPT
Batch file programming
Batch FIles
Batch File Programming
111
111
To Get To The Command Prompt In Windows Xp Go To
CMD Command
Batch programming and Viruses
amrapali builders @@ hacking with basic command.pdf
Command line
nwlab-ex1.pdf
Command.pptx presentation
Wintel commands
Filters & Vi Editor
98 366 mva slides lesson 5
Hhs en02 windows_and_linux
Batch file programming
Ad

More from nishadvtky (20)

PDF
Find the complex zeros of the polynomial function. Write f in factor.pdf
PDF
Enzymes are organic molecules that are essential raw materials for a.pdf
PDF
C++ 1.MAIN OBJECTIVEThe goal of this project is to design.pdf
PDF
Can the peak to peak ripple current, IL, of a inductor be measured .pdf
PDF
A statistic is a number describing an aspect of the scores in a samp.pdf
PDF
Angle in standavd position10pi7 =SolutionAn angle is in standa.pdf
PDF
Dada la ecuacion de la conica -6x_1^2 + 20 x_1 x_2 + 8x_2^2 + 30 x_1.pdf
PDF
Assume that a new oxygen-transport protein has been discovered in ce.pdf
PDF
You are lost in the national park of Bandrika. Tourists comprise 23.pdf
PDF
Describe in words the phylogenetic relationships among Eusthenoptero.pdf
PDF
Why do scientists refer to Charles Darwins ideas about evolution a.pdf
PDF
Which of the following terms refers to the ability to attend to cert.pdf
PDF
Which system performs better using OFDM to service two different us.pdf
PDF
Which of the following is a method of reproduction that plants canno.pdf
PDF
What is an interface How is extending a class different from impl.pdf
PDF
what are the consequences of HWE on allele and genotype frequencies.pdf
PDF
What are three major operating characteristics of air filtersSo.pdf
PDF
What are “nonsense syllables” and what is their importanceSolut.pdf
PDF
Three kinds of macromolecules are present in cell membranes. What ar.pdf
PDF
There are five girls and five boys at a party. In how many ways can .pdf
Find the complex zeros of the polynomial function. Write f in factor.pdf
Enzymes are organic molecules that are essential raw materials for a.pdf
C++ 1.MAIN OBJECTIVEThe goal of this project is to design.pdf
Can the peak to peak ripple current, IL, of a inductor be measured .pdf
A statistic is a number describing an aspect of the scores in a samp.pdf
Angle in standavd position10pi7 =SolutionAn angle is in standa.pdf
Dada la ecuacion de la conica -6x_1^2 + 20 x_1 x_2 + 8x_2^2 + 30 x_1.pdf
Assume that a new oxygen-transport protein has been discovered in ce.pdf
You are lost in the national park of Bandrika. Tourists comprise 23.pdf
Describe in words the phylogenetic relationships among Eusthenoptero.pdf
Why do scientists refer to Charles Darwins ideas about evolution a.pdf
Which of the following terms refers to the ability to attend to cert.pdf
Which system performs better using OFDM to service two different us.pdf
Which of the following is a method of reproduction that plants canno.pdf
What is an interface How is extending a class different from impl.pdf
what are the consequences of HWE on allele and genotype frequencies.pdf
What are three major operating characteristics of air filtersSo.pdf
What are “nonsense syllables” and what is their importanceSolut.pdf
Three kinds of macromolecules are present in cell membranes. What ar.pdf
There are five girls and five boys at a party. In how many ways can .pdf
Ad

Recently uploaded (20)

PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PDF
01-Introduction-to-Information-Management.pdf
PDF
Sports Quiz easy sports quiz sports quiz
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
RMMM.pdf make it easy to upload and study
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Computing-Curriculum for Schools in Ghana
PPTX
master seminar digital applications in india
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Basic Mud Logging Guide for educational purpose
PPTX
Cell Types and Its function , kingdom of life
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
01-Introduction-to-Information-Management.pdf
Sports Quiz easy sports quiz sports quiz
FourierSeries-QuestionsWithAnswers(Part-A).pdf
RMMM.pdf make it easy to upload and study
O5-L3 Freight Transport Ops (International) V1.pdf
Final Presentation General Medicine 03-08-2024.pptx
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
TR - Agricultural Crops Production NC III.pdf
Computing-Curriculum for Schools in Ghana
master seminar digital applications in india
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Abdominal Access Techniques with Prof. Dr. R K Mishra
Basic Mud Logging Guide for educational purpose
Cell Types and Its function , kingdom of life
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
human mycosis Human fungal infections are called human mycosis..pptx
PPH.pptx obstetrics and gynecology in nursing
STATICS OF THE RIGID BODIES Hibbelers.pdf

Using Windows Batch in command prompt. - Call this programCreate a.pdf

  • 1. Using Windows Batch in command prompt. - Call this program Create a batch file that when executed will display the following. Include a pause between each command 1 - For the current computer find the path that is used to search for executable programs. 2 - Find fiu.edu's ip address. 3 - Show the active connections in the current computer 4 - Find the routers used to reach google.com 5 - The IP address of the current computer Do the same above with Linux Terminal Mode Solution Create a text file in desktop. Rename it using .bat extension. Open it with note pad and type the following command there: ECHO OFF 1) dir /s /b *.exe PAUSE 2) ping , where is the computer name or domain name PAUSE 3) when the cmd opens type - netstat -a PAUSE 4) ping google.com PAUSE 5) on cmd window type- ipconfig PAUSE save the file.