batch file

my requirment is

i have to call a batch file from a c++ program
that batch file is called with the argument as print.txt
print.txt is a text file which should get printed on printer (any printer) when a batch file call is made

1) how to call a batch file in c++
2) how to print the text file to a printer

please help me if possible with code

Duplicate thread (see other thread

Read the rules - closing this thread.