Want to be a web developer? You'll need to know HTML. Prepare for HTML5 certification by enrolling in July's Course of the Month! It's free for Premium Members, Team Accounts, and Qualified Experts.
@echo off set BkupDir=C:\temp set PrintBRM=%windir%\System32\Spool\Tools\PrintBRM call :DoBackup M-CORP call :DoBackup PRT-US call :DoBackup Y-COR call :DoBackup BO-RNT1 goto :EOF :DoBackup [printservername] if exist "%BkupDir%\%~1.printerExport" ren "%BkupDir%\%~1.printerExport" "*.bak" %PrintBRM% -b -s \\%~1 -f %BkupDir%\%~1.printerExport -O FORCE && ( if exist "%BkupDir%\%~1.bak" del "%BkupDir%\%~1.bak ) || ( if exist "%BkupDir%\%~1.bak" ren "%BkupDir%\%~1.bak" "*.printerExport" ) goto :EOF
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.