I'll assume you're using Windows NT (2000 works and XP should as well) somewhere, because the following won't work on Win 85, 98, or ME
@echo off
echo. > all_tables.txt
for /f %%t in (tables.txt) do (
echo %%t
bcp rwc..%%t out %%t.txt -Uuser_name -Sserver_name -Ppassword -c
copy all_tables.txt + %%t.txt all_tables2.txt
del all_tables.txt
move all_tables2.txt all_tables.txt
)
This will work for any number of tables. Just put each table on its own line in a file called "tables.txt". Obviously you will need to specify your user name, server name and password.
The resulting file is called "all_tables.txt" There is a blank line at the start of the file, but I think that's a small price to pay.
If you're going to be doing this kind of thing regularly think about obtaining Cygwin becuase then you have a more powerful scripting (bourne shell) at your disposal.