There are a few ways you can do that (in no particular order)
SQLEXEC(lnConn, FILETOSTR(lcScripFileName)). Keep in mind that 'GO' statement isn't a part of T-SQL. If the batch includes 'GO' statements, you'll have to parse it and send each one separatelly.
SqlCmd command line utility
SQL DMO/SMO
> >How can I execute a bunch of SQL statements in a SQL script file from within VFP using SQLEXEC or some other way? >