Running a Perl script through VB (kind of)

jjcarter1988

New Member
Joined
Nov 24, 2013
Messages
28
So... I have done some research on the topic and not found a particular answer that helps out.

My current situation is that I have a .log file which I run a perl script on to parse the file for specific parameters needed. To do this I simply am in a Terminal window issuing the perl script on the log file. I then turn the parsed information into a csv file (for read out and importing purposes). The command I use in Terminal basically is "read_log ex.log > ex.csv". Obviously this is calling the perl script read_log.pl.

With my current macro I use GetOpenFileName to choose the csv file I created and then import it to the sheet.

What I am wondering is, can I simply use GetOpenFileName to choose the unparsed log file, and the use VB to run the perl script on the log file to parse it, turn it into a csv, and then import it?

I know this seems petty since is just one step I am eliminating, however I am curious if VB can do this.

Thanks in Advance!
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest

Forum statistics

Threads
1,216,551
Messages
6,131,310
Members
449,642
Latest member
jobon

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top