Have you looked at SQLCMD? It's the replacement for osql which itself was the replacement for isql.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability