G
Guest
I am trying to update a batch file I currently have for backing up an Oracle
database. It is currently something like:
call ShutdownOracleService.bat
call exportdata.bat
call ZipFilesToBackup.bat
call RestartOracleService.bat
It works fine but always dumps the files into the same directory. I want to
improve on this and start by creating a directory for today's date so each
night the backup runs its files will be stored in a folder. I want to do the
following:
rem ### NEW FUNCTIONALITY ###
mkdir TodaysDate 'ie: 2005-02-08
cd TodaysDate
rem ### END NEW FUNCTIONALITY ###
call ShutdownOracleService.bat
call exportdata.bat
call ZipFilesToBackup.bat
call RestartOracleService.bat
Can anyone tell me how to go about making this directory? I am pretty
simple when it comes to batch files. I was going to convert this nice simple
BAT file to a VBS, but I think that is overkill.
Thank You
database. It is currently something like:
call ShutdownOracleService.bat
call exportdata.bat
call ZipFilesToBackup.bat
call RestartOracleService.bat
It works fine but always dumps the files into the same directory. I want to
improve on this and start by creating a directory for today's date so each
night the backup runs its files will be stored in a folder. I want to do the
following:
rem ### NEW FUNCTIONALITY ###
mkdir TodaysDate 'ie: 2005-02-08
cd TodaysDate
rem ### END NEW FUNCTIONALITY ###
call ShutdownOracleService.bat
call exportdata.bat
call ZipFilesToBackup.bat
call RestartOracleService.bat
Can anyone tell me how to go about making this directory? I am pretty
simple when it comes to batch files. I was going to convert this nice simple
BAT file to a VBS, but I think that is overkill.
Thank You