Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!
@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.
|compare two directories, echo out which files are not the same||15||40|
|Convert (short) Powershell script to VBS||8||53|
|How to turn on numlock via VBS code?||12||27|
|Script PowerShell - List KB installed||15||25|
Join the community of 500,000 technology professionals and ask your questions.