Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

help in batch file creation

Status
Not open for further replies.

gobiraj

Member level 2
Joined
Jul 23, 2013
Messages
46
Helped
1
Reputation
2
Reaction score
1
Trophy points
8
Activity points
374
I need to create batch file for the part of my project.

please see the cmds below in order.

1) cd C:\Program Files\Wireshark
2) then execute dumpcap -D to display the windows internal identifiers of the network interface
3) then execute the following command by choosing the arguments of i,w and b

dumpcap -i -w -b filesize

So please guide me step by step to run them into batch file.
 

open a text file in notepad.
type:
-----------
cd C:\Program Files\Wireshark
dumpcap -D
dumpcap -i -w -b filesize
-----------------
close and name it as 'sharktst.bat'
=====================================
then open a command prompt window by running 'cmd'
in that cmnd window:

change the directory to the folder where you have stored 'sharktst.bat'
then type:
sharktst.bat (press enter)

--------------------------

just double clicking on the file ' sharktst.bat' will also do.
only thing is you may either see a black window come and go with result or permanent (depends on your OS PC config)
======================================
 

Thank you so much for coming back.

But after the 2nd cmd.

I need to have prompt message one by one for keying in customise value of (-i ,-w and -b) parameters.

before the 3rd cmd execution
 

Thank you so much for coming back.

But after the 2nd cmd.

I need to have prompt message one by one for keying in customise value of (-i ,-w and -b) parameters.

before the 3rd cmd execution
can you give the customised values at start of bat execution ?
(that is knowing of i , b values before you start?)
 

can you give the customised values at start of bat execution ?
(that is knowing of i , b values before you start?)

No I have to give the customised values after the second cmd output ( dumpcap -D)
 

which means that you know the values of i, b ... only from the output shown by 'dumpcap -d' ?

said in other way , do you fix the parameters of the third command i , b , reading the output shown by second command?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top