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


Author
Message
plugger
plugger
New Member
New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)
Group: Forum Members
Posts: 25, Visits: 49
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 (2.7K reputation)Macrium Representative (2.7K reputation)Macrium Representative (2.7K reputation)Macrium Representative (2.7K reputation)Macrium Representative (2.7K reputation)Macrium Representative (2.7K reputation)Macrium Representative (2.7K reputation)Macrium Representative (2.7K reputation)Macrium Representative (2.7K reputation)
Group: Administrators
Posts: 1.5K, Visits: 8.5K
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

plugger
plugger
New Member
New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)New Member (41 reputation)
Group: Forum Members
Posts: 25, Visits: 49

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...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search