Author |
Topic  |
|
luka70
New Member

Italy
27 Posts |
Posted - February 13 2010 : 18:31:07
|
Is possible at the end of the backup, display a popup on the desktop with success or failure of the backup? Tray bar message is displayed only for a few seconds. Thanks
Luca |
|
zfactor
New Member

USA
16 Posts |
Posted - February 13 2010 : 22:19:14
|
actually that would be a nice feature especially for say my wife who never would bother to actually check to see if any errors showed up ever till its to late
|
 |
|
Nick
Moderator
    
United Kingdom
6303 Posts |
Posted - February 14 2010 : 09:08:56
|
Hi
You can add a popup message using VBScript:
After the line:' Handle backup error Add:WScript.Echo("Backup Failed") After the line:' Everything OK Add:WScript.Echo("Successful Backup")
Hope this helps
Nick - Macrium Support
|
 |
|
luka70
New Member

Italy
27 Posts |
Posted - February 14 2010 : 11:07:05
|
Hi Nick, your suggestion is perfect! You are always very polite and efficient. Thanks
Best Regards
Luca |
 |
|
Luca
Frequent Poster
  
Italy
137 Posts |
Posted - May 13 2011 : 11:47:32
|
quote: Originally posted by Nick
Hi
You can add a popup message using VBScript:
After the line:' Handle backup error Add:WScript.Echo("Backup Failed") After the line:' Everything OK Add:WScript.Echo("Successful Backup")
Hope this helps
Nick - Macrium Support
Nick, can you enter a timeout of 10 seconds to popup? This is possible?
Thanks Regards
Luca |
 |
|
alan9182
Advanced Member
    
United Kingdom
527 Posts |
Posted - May 13 2011 : 13:22:59
|
When I have launched a backup I have far better things to do than sit at the computer waiting for a pop-up that lasts only 10 seconds.
When I have done the better things I want to see the status.
I consider PAUSE awaiting my keyboard entry to be a better solution.
I always follow a backup with a DIR to see how this Incremental compares with the previous.
Thanks for this topic, it has solved my needs. After Decades of using DOS and BATCH I have just used the Convert XML to Batch option, and simply appended these two lines to the script
DIR "E:\Master Images"\*.mrimg /O:D | FIND "/"
PAUSE
Regards Alan
O/S: Microsoft Windows 7 Ultimate *64 SP1 Graphics: HIS ATI Radeon HD 4670 1GB GDDR3 Motherboard: ASUS M3A32-MVP DELUXE AMD 790FX Processor: AMD Phemom 9500 Quad Core 2206 Mhz Hard Drive: Samsung HD103SJ, 931GB, MBR, 32MB Cache Hard Drive: WD Caviar Black, 640GB, GPT, 32MB Cache RAM: Corsair XMS 6400 4GB (2X2GB) 800mhz
|
 |
|
Luca
Frequent Poster
  
Italy
137 Posts |
Posted - May 13 2011 : 14:13:56
|
quote: Originally posted by alan9182
When I have launched a backup I have far better things to do than sit at the computer waiting for a pop-up that lasts only 10 seconds.
When I have done the better things I want to see the status.
I consider PAUSE awaiting my keyboard entry to be a better solution.
I always follow a backup with a DIR to see how this Incremental compares with the previous.
Thanks for this topic, it has solved my needs. After Decades of using DOS and BATCH I have just used the Convert XML to Batch option, and simply appended these two lines to the script
DIR "E:\Master Images"\*.mrimg /O:D | FIND "/"
PAUSE
Regards Alan
O/S: Microsoft Windows 7 Ultimate *64 SP1 Graphics: HIS ATI Radeon HD 4670 1GB GDDR3 Motherboard: ASUS M3A32-MVP DELUXE AMD 790FX Processor: AMD Phemom 9500 Quad Core 2206 Mhz Hard Drive: Samsung HD103SJ, 931GB, MBR, 32MB Cache Hard Drive: WD Caviar Black, 640GB, GPT, 32MB Cache RAM: Corsair XMS 6400 4GB (2X2GB) 800mhz
Alan, thanks for your comments, but I would need what I asked.
Regards
Luca |
 |
|
Nick
Moderator
    
United Kingdom
6303 Posts |
Posted - May 14 2011 : 07:43:18
|
Hi Luca
I'm afraid this is not possible.
There is a VBScript function WshShell.Popup, but it has a bug and it seems to ignore the timeout.
http://msdn.microsoft.com/en-us/library/x83z1d9f(v=vs.85).aspx
Kind Regards
Nick - Macrium Support
|
 |
|
Luca
Frequent Poster
  
Italy
137 Posts |
Posted - May 14 2011 : 08:48:42
|
quote: Originally posted by Nick
Hi Luca
I'm afraid this is not possible.
There is a VBScript function WshShell.Popup, but it has a bug and it seems to ignore the timeout.
http://msdn.microsoft.com/en-us/library/x83z1d9f(v=vs.85).aspx
Kind Regards
Nick - Macrium Support
Nick, I found this workaround:
WScript.Echo("Backup Failed")
WScript.Timeout then we must define the time in the registry: HKEY_CURRENT_USER\Software\Microsoft\Windows Script Host\Settings\Timeout
Regards
Luca |
Edited by - Luca on May 14 2011 08:50:00 |
 |
|
Luca
Frequent Poster
  
Italy
137 Posts |
Posted - May 14 2011 : 19:02:27
|
Eureka!!! I found the solution.
' Handle backup error
Dim wshShell, Result
set WshShell = CreateObject("WScript.Shell")
Result = WshShell.Popup("Backup Failed", 10, "Information", 64 + 4096)
objShell.LogEvent 1, "Macrium Reflect - Backup Failed"
elseif objExecObject.exitcode = 0 then
' Everything OK
set WshShell = CreateObject("WScript.Shell")
Result = WshShell.Popup("Successful Backup", 10, "Information", 64 + 4096)
objShell.LogEvent 0, "Macrium Reflect - Successful Backup" Regards
Luca |
Edited by - Luca on May 16 2011 13:12:56 |
 |
|
|
Topic  |
|