Board index » Visual Studio » New User - Want to convert batch file to VBscript
|
Tonasis
|
New User - Want to convert batch file to VBscript
Visual Studio76
I currently have a batch file that runs every night to perform a backup. It does something like this: rem Prepare Oracle service call ShutdownService.bat call exportdata.bat call ZipFilesToBackupDir.bat call RestartService.bat Now because the ShutdownService.bat and RestartService.bat come with the database they cannot be changed. I would like to add one enhancement to it when converting to a VBS. I want to make a directory that has today's date and store all the output from the batch file in that directory. It should go something like this: call ShutdownService.bat Make Directory for today 'ie: mkdir 20050207 exportdata.bat 'store in 20050207 directory ZipFilesToBackupDir call RestartService.bat I know some VB but have never even thought about using VBScript so I could use some help. Q1: Can I call several .BAT files easily from within my VBS? Any examples? Q2: Can I redirect all output from the VBS to a text log file? Q3: Any good reference material I should be reviewing? Thank You - |
