Jump to content

csd158

Member
  • Posts

    2
  • Joined

  • Last visited

  • Donations

    0.00 USD 
  • Country

    United States

Everything posted by csd158

  1. Thank you for the reply. So would I replace that line with: for /F "tokens=2-4 delims=/ " %i in ('date /t') do %k%i%j I appreciate your help, csd158
  2. Wondering if someone could help with the following batch file...I would like it to keep a running log of dates. Now it overwrites the previous day, any help would be greatly appreciated. Thanks. REM Start by setting the location to store the backup and the drive PowerSchool data resides on SET POWERSCHOOL_SCRIPTS=D: SET POWERSCHOOL_DRIVE=D: SET POWERSCHOOL_BACKUP_FOLDER=D:\DailyBackup\ IF NOT EXIST %POWERSCHOOL_BACKUP_FOLDER% MD %POWERSCHOOL_BACKUP_FOLDER% REM Capture the 3-character name of today SET DAY=Default FOR /F "TOKENS=1" %%A IN ('DATE/T') DO SET DAY=%%A REM Sets the drive letter %POWERSCHOOL_DRIVE% Cd oradata\psproddb\data_pump_dir\ IF EXIST PowerSchool-%DAY%.dmp erase PowerSchool-%DAY%.dmp /q %POWERSCHOOL_SCRIPTS% cd\ Cd oracle\scripts call EXPORT PSProdDB PowerSchool-%DAY% %POWERSCHOOL_DRIVE% Cd\ Cd oradata\psproddb\data_pump_dir\ Copy PowerSchool-%DAY%.dmp %POWERSCHOOL_BACKUP_FOLDER% /Y Thanks again, csd158
×
×
  • Create New...