curiousstudent 0 Newbie Poster

I need to run a batch file batch file which is stored in my C folder. When I run this file, I get the following on the cmd.

1 APs were seen

MAC Address SSID RSSI
00:27:0d:b6:df:10 IBM -93
Press any key to continue . . .


Now, I need to run this batch file from VB6 every 5 minutes, and read the output from cmd and store it in a text file with the corresponding timestamp (that is when the bat was run).

I am VB newbie and any help would be really appreciated.

Also, this is what the batch file looks like:

@echo off
java -Dplacelab.ini="../placelabdata/placelab.ini" -cp "../lib/placelab.jar;../jdbm-0.12.jar;../lib/mysql.jar;../lib/swt.jar;../lib/jface.jar;../lib/hsqldb.jar;../lib/runtime.jar;../lib/RXTXcomm.jar" org.placelab.example.WiFiSpotterExample
pause

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.