Jump to content

Batch Shell Tools


Aegis

Recommended Posts

For those of you who prefer using a command-line shell, here are some helpful cmdlets :thumbup.

eval.bat %1: Evaluates an equation (%1)

schedule.bat %1: Text reminder at specified time (%1=xx:xx:xx.xx)

time.bat: Reports the time and date

More to come soon! Please post some suggestions of some tools you would like to see.

Download:

tools.zip

Edited by Aegis
Link to comment
Share on other sites


Hi Aegis! If I could, I will try to give you a hand on this ;)

Maybe you will found interesting this code:

rem Setting external (provided) variables
:BeginningOfScript
If "%1" EQU "" Goto EndOfBeginning
For /f "usebackq delims=: tokens=1,2" %%i IN (`echo %1`) Do (
 If /i %%i EQU /Operation Set SDS.OperationType=%%j
 If /i %%i EQU /Storage Set SDS.DestinationStorage=%%j
 If /i %%i EQU /Machine Set SDS.RawRemoteMachine=%%j
 If /i %%i EQU /Job Set SDS.JobContainer=%%j
 If /i %%i EQU /Execution Set SDS.ExecutionSide=%%j
 If /i %%i EQU /Automated Set SDS.AutomatedMaster=%%j
 If /i %%i EQU /Restart Set SDS.AutoRestart=%%j
)
Shift /0
Goto BeginningOfScript
:EndOfBeginning

It allows you to provide parameters in format /parameter:value...

So

test.cmd /operation:installation /job:Office2003

is the same as

test.cmd /job:office2003 /operation:installation

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...