Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.
if not exist "\\server\ASRC IT Scripts\%COMPUTERNAME%.tmp" goto MESSAGE rem The file %COMPUTERNAME%.tmp exists rem Get the Printer Share Name rem The file "%COMPUTERNAME%.tmp" (e.g. "PC001.tmp") will contain a UNC like "\\server\printerName" . set/p printer_share=<"\\server\ASRC IT Scripts\%COMPUTERNAME%.tmp" echo printer_share is %printer_share% rem pause calling Add the Specified Printer.vbs if not X%printer_share% == X "\\server\ASRC IT Scripts\Add the Specified Printer.vbs" "%printer_share%" rem pause goto END :MESSAGE pause The file \\server\ASRC IT Scripts\%COMPUTERNAME%.tmp was not found. Contact HelpDesk. Unable to set default Printer... :END
Join the community of 500,000 technology professionals and ask your questions.