I need to create a batch file that creates a printer port of C:\WINNT\TEMP\999.prn (prints to a local file). Then I need to created a shared printer in the batch after the port is created. Here is what I currently have, this will create the printer to LPT1, but won't share it. So it needs to be edited to do as I described above.
REM Run inf install:
rundll32 printui.dll,PrintUIEntry /if /b "9999" /f %windir%\inf\ntprint.inf /r "lpt1:" /m "Generic / Text Only"