Jump to content

Script to install local printer drivers


ds10025
 Share

Recommended Posts

:TOPLAB

@cls

@echo Install local printer drivers

@REM Install printer

@REM If driver is not on local then download a copy from network

if not exist "%windir%\inf\ntprint.inf" ( @rundll32 printui.dll PrintUIEntry /if /f e:\PRINTERS\%PRN%\hp4100ps.inf /r "lpt2:" /m "HP LaserJet 4100 Series PS" )

@rundll32 printui.dll PrintUIEntry /if /f %windir%\inf\ntprint.inf /r "lpt2:" /m "HP LaserJet 4100 Series PS"

@pause

@cls

@echo Configure printer

@REM Pre-configure the printer

RUNDLL32 PRINTUI.DLL PrintUIEntry /Sr /n "HP LaserJet 4100 Series PS" /a "e:\PRINTERS\%PRN%\%PRN%.dat"

@pause

goto END

Hi

Above is a small bath file that allows users to install local printer drivers to their laptop, from our network. It also, setup the printer with default paper size etc.

How easy is it to convert this to Autoit script or will I need to use comspec?

Link to comment
Share on other sites

How easy is it to convert this to Autoit script or will I need to use comspec?

pretty easy. See help file Run()

__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...