How control action on completion - nothing, suspend, hibernate?


Author
Message
plugger
plugger
Junior Member
Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)
Group: Forum Members
Posts: 30, Visits: 58
Using Version 7.1
Is there a way to pass completion action in calls to reflect.exe?

I have a VBS file with two calls to reflect.exe:
    ExitCode = Backup ("""C:\...\reflect.exe"" -e -w <BACKUP_TYPE> ""C:\...\Q.xml""")
    ExitCode = Backup ("""C:\...\Reflect.exe"" -e -w <BACKUP_TYPE> ""C:\...\All.xml""")
In the first call, I'd like reflect.exe to do nothing upon completion.
In the second call I'd like it to "suspend".

Nick
Nick
Macrium Representative
Macrium Representative (3.8K reputation)Macrium Representative (3.8K reputation)Macrium Representative (3.8K reputation)Macrium Representative (3.8K reputation)Macrium Representative (3.8K reputation)Macrium Representative (3.8K reputation)Macrium Representative (3.8K reputation)Macrium Representative (3.8K reputation)Macrium Representative (3.8K reputation)Macrium Representative (3.8K reputation)
Group: Administrators
Posts: 2.2K, Visits: 13K
plugger - 20 December 2017 5:16 PM
Using Version 7.1
Is there a way to pass completion action in calls to reflect.exe?

I have a VBS file with two calls to reflect.exe:
    ExitCode = Backup ("""C:\...\reflect.exe"" -e -w <BACKUP_TYPE> ""C:\...\Q.xml""")
    ExitCode = Backup ("""C:\...\Reflect.exe"" -e -w <BACKUP_TYPE> ""C:\...\All.xml""")
In the first call, I'd like reflect.exe to do nothing upon completion.
In the second call I'd like it to "suspend".

For VBScript,   after the second call:

objShell.Run "rundll32.exe PowrProf.dll, SetSuspendState"

(For hibernate)

OR

objShell.Run "rundll32.exe PowrProf.dll,SetSuspendState Sleep"

(For Sleep)


Kind Regards

Nick - Macrium Support

Next Webinar


plugger
plugger
Junior Member
Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)Junior Member (51 reputation)
Group: Forum Members
Posts: 30, Visits: 58

Thanks!  That worked.
(I recoil at the thought of the laborious process that lead you to know that.)

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Login

Explore
Messages
Mentions
Search