Solved Batch File Execution error

growing

New member
Local time
7:59 PM
Messages
5
Please I need help!
I have been on this stuff for over hours now..and no headway out.

I want to write a batch script that can run tshark as shown below
................................................................................................................................................................
@echo off

Start "" "C:\Mytraces\Program Files\Wireshark\tshark -i 1 -a duration:60 -t r -t ad -b filesize:100000 -b files:10 -w usingbatchsetup.pcap
.................................................................................................................................................................

But I got errors and the final one being...

....................................................................................................................................................................
windows cannot find "C:\Mytraces\Program Files\Wireshark\tshark -i 1 -a duration:60 -t r -t ad -b filesize:100000 -b files:10 -w usingbatchsetup.pcap" make sure you type the name correctly, then try again.
....................................................................................................................................................................
Please what can I do....?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Compaq
OS
Window 7 Ultimate 64bits
CPU
2.16
Hard Drives
500GB
Antivirus
Nil
Browser
Chrome
Welcome to the Seven Forums.

Remove this part:

Start "" "C:\Mytrace.....

so the line should start with:
"C:\Mytrace

Move the closing quotation mark to the end of the file to be run:
"C:\Mytraces\Program Files\Wireshark\tshark"

You should not need a closing quotation mark after all of those parameters and switches.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Thank you, it worked.

"C:\Mytraces\Program Files\Wireshark\tshark" -i 1 -a duration:60 -t r -t ad -b filesize:100000 -b files:10 -w usingbatchsetup.pcap

Thanks pretty much....
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Compaq
OS
Window 7 Ultimate 64bits
CPU
2.16
Hard Drives
500GB
Antivirus
Nil
Browser
Chrome
I want to autorun this file in windows task schedule, but encountered error....
and when I attempted to "run with highest privilege", I can't find the output file.

Please what can I do, where can I find the file?
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Compaq
OS
Window 7 Ultimate 64bits
CPU
2.16
Hard Drives
500GB
Antivirus
Nil
Browser
Chrome
Can you find the output file when you run the batch file manually? (Using "run as admin".)
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
I could not find the file(s) manually, but I had a workaround that gave me access to the file... using the following command

C:\Fighting\Program Files\Wireshark\tshark" -i 1 -a duration:108 -t r -t ad -b filesize:10 -b files:100 -w C:\Fighting\%computername%__%dt%_%tm%.pcap

I was able to provide an output path.

Thanks
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Compaq
OS
Window 7 Ultimate 64bits
CPU
2.16
Hard Drives
500GB
Antivirus
Nil
Browser
Chrome
Thanks for posting back with your solution :-)
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Employer provided Dell Latitude
OS
W7 Pro SP1 64bit
CPU
i7
Memory
8GB
Graphics Card(s)
Intel HD Graphics
Hard Drives
crappy SSD
Antivirus
Employer mandated Symantec Endpoint Protection
Browser
Pale Moon 64bit, IE11 64bit & Chrome 64bit
Back
Top