Skip to main content

Variable arguments for commands pre/after backup

Thread needs solution

Hello,

Is it possible to pass variable arguments to a script ?

I'd like to create Dashboard based on an ANKHOR FlowSheet service.

The service accepts HTTP get/post commands to fill its database.

I've created a command line batch ( .bat ) which executes a powershell command.

( Wouldn't it be nice if Acronis could execute powershell scripts ? )

powershell -Command "& Invoke-WebRequest -Uri myDashboardServer:8080/service/DBService?backup='%1'"

My requirement is to pass variables in 'Arguments' line which should be :

- Backup name

- Result of the backup operation

- Date

I can't find any infos in the manual. Things like [MachineName], [Date] won't work and will be passed as [MachineName] and [Date].

Any ideas ?

Thanks in advance

DataCube

0 Users found this helpful