I would like to convert this batch file to VBS.
All it does basically is to read text (a single record) from "%COMPUTERNAME%.tmp" and then call another VBS script using that text as an argument.
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%"
pause The file \\server\ASRC IT Scripts\%COMPUTERNAME%.tmp was not found. Contact HelpDesk. Unable to set default Printer...