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


Author
Message
plugger
plugger
Talented Member
Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)
Group: Forum Members
Posts: 51, Visits: 127
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 (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)Macrium Representative (5.4K reputation)
Group: Administrators
Posts: 3.2K, Visits: 22K
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

See our reviews on

Trustpilot Logo
Trustpilot Stars


plugger
plugger
Talented Member
Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)Talented Member (100 reputation)
Group: Forum Members
Posts: 51, Visits: 127

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