Hi guys, I am trying to create a batch file to help automate me creating dvi and pdf files from tex files. I'm in a windows xp environment. I have set up a batch file that asks the user whether they want to create a pdf file or a dvi file for output and then opens the command line editor: Code (Text): @echo off @title Create dvi-pdf Files @set /p type=dvi or pdf?: @cls echo Type: texify --clear --src [Filename] @%SystemRoot%\system32\cmd.exe At present I'm not doing anything with the information the user has given me, but I will. At present I just want to know how to add information to the prompt. At present all it does is open up the command prompt to the current directory, I want it to then write information to the prompt and execute it. Like so: The command prompt opens like I said: Code (Text): C:\Temp\ Then the batch file writes to the prompt: Code (Text): C:\Temp\texify --clear --src Temp.tex Which will then convert the tex file into a dvi file and clear all the other files such as the aux file and log file. How do I get the batch file to write to the prompt?