(path to perl.exe) (path to perl file)file.pl < (inputfile with path) > (outputfile with path) example: C:\Perl\bin\perl.exe C:\test.pl < C:\sometextfile.txt > C:\someresultfile.txt I call this *.bat file from within VB by using the following code: iTask = Shell(Environ$("COMSPEC") & " /c " & sPath, vbHide) pHandle = OpenProcess(SYNCHRONIZE, False, iTask) If pHandle <> 0 Then WaitForSingleObject pHandle, INFINITE CloseHandle pHandle End If ' sPath is the path to the bat file. ' You can do sPath = AddBackSlash(App.Path)&"batchfile.bat" ' to create the proper path in vb