User531388329 posted
You have to use a colon to make it work:
logparser -file:filename.txt
but filename.txt can only contain the SQL query...you still have to provide the switches on the command-line:
logparser -file:filename.txt -i:IISW3C -o:SQL -database:mydatabase etc...
BTW, if you want to use VB, consider using the logparser COM objects.