Max10137
asked on
How do I crerate a batch file that creates a printer port then a shared printer?
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.
@ECHO OFF
REM Run inf install:
rundll32 printui.dll,PrintUIEntry /if /b "9999" /f %windir%\inf\ntprint.inf /r "lpt1:" /m "Generic / Text Only"
@ECHO OFF
REM Run inf install:
rundll32 printui.dll,PrintUIEntry /if /b "9999" /f %windir%\inf\ntprint.inf /r "lpt1:" /m "Generic / Text Only"
do you have an Active Directory network? If so there should be a setting in group policy to publish all printers in Active Directory. As long as all users are able to 'run' that policy, all printers added to the computer should be shared.
ASKER
no active directory.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.