954,582 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

VB6 Code to run batch file and store its output from cmd

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

curiousstudent
Newbie Poster
1 post since Aug 2010
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: