You are not logged in.

#1 08 Jun 2020 12:32

npocmaka
Member
From: Bulgaria
Registered: 03 Dec 2009
Posts: 446

rolling back script execution with scriptrunner

scriptrunner is a tool installed by default on windows.
one of its features seems to be really useful  - ability to rollback on error:

ScriptRunner.exe -appvscript cmd "/c" "echo #>C:\#&exit 1"  -appvscriptrunnerparameters -rollbackonerror

and

ScriptRunner.exe -appvscript cmd "/c" "echo #>E:\scripts\#&exit 1" 

On the first example the file C:\# will be deleted after the scriptrunner is ready. I think it will work also with events or edits in the registry.

Offline

#2 08 Jun 2020 15:39

Shadow Thief
Member
Registered: 12 Jul 2012
Posts: 205

Re: rolling back script execution with scriptrunner

Searching Google for scriptrunner returns three different applications, none of which appear to be this one. Searching for "scriptrunner appvscript" suggests that this is part of Microsoft's https://en.wikipedia.org/wiki/Microsoft_App-V application virtualization solution.

I like the idea of sandboxing my scripts, but I'm not really in a situation where I'd need to stream an application from a central server to a bunch of clients.

Offline

#3 09 Jun 2020 19:15

Simon Sheppard
Admin
Registered: 27 Aug 2005
Posts: 1,130
Website

Re: rolling back script execution with scriptrunner

I have added a page for this here:
https://ss64.com/nt/scriptrunner.html

It does seem a little buggy, if running more than one script the rollback doesnt work.

Offline

Board footer

Powered by