B
benazir
Hi,
I am using a VB script in order to perform Operating system task vi
EXCEL.
The routine, which is written in Excel VB, take a backup of files.
When the code runs it’s begin backup of several OS files via Comman
prompt.
But after the completion of backup we can't know when its end or is i
successful or not.
I wanted that when this activity completes, a message box appear o
EXCEL, which informs that the task is completed and its statu
(successful or unsuccessful).
What extra piece of code I add in the following code in order t
accomplish the desired result?
Could some please inform?
Thanks
Regards
Benazir
SAMPLE CODE:
strFileOut="c:\backup.sql"
set objFS=CreateObject("Scripting.FileSystemObject")
set objOutFile=objFS.OpenTextFile(strFileOut,2,1)
strOutput="backup datafile <datafile Name>;"
objOutFile.WriteLine strOutPut
set WShShell=CreateObject("WScript.Shell")
WShShell.Run "rman target / @c:\backup.sql
I am using a VB script in order to perform Operating system task vi
EXCEL.
The routine, which is written in Excel VB, take a backup of files.
When the code runs it’s begin backup of several OS files via Comman
prompt.
But after the completion of backup we can't know when its end or is i
successful or not.
I wanted that when this activity completes, a message box appear o
EXCEL, which informs that the task is completed and its statu
(successful or unsuccessful).
What extra piece of code I add in the following code in order t
accomplish the desired result?
Could some please inform?
Thanks
Regards
Benazir
SAMPLE CODE:
strFileOut="c:\backup.sql"
set objFS=CreateObject("Scripting.FileSystemObject")
set objOutFile=objFS.OpenTextFile(strFileOut,2,1)
strOutput="backup datafile <datafile Name>;"
objOutFile.WriteLine strOutPut
set WShShell=CreateObject("WScript.Shell")
WShShell.Run "rman target / @c:\backup.sql