ds10025 Posted February 6, 2007 Share Posted February 6, 2007 :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 More sharing options...
/dev/null Posted February 6, 2007 Share Posted February 6, 2007 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 More sharing options...
ds10025 Posted February 6, 2007 Author Share Posted February 6, 2007 pretty easy. See help file Run()Thanks again.This is a great Forum and great tool!!!!! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now