Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

DotNet version of Windows Scripting Host

Tags:

.net

wsh

vbscript

Good morning,

I work in a small shop (only two of us) and we currently manage more .vbs scripts that we would like to (we would like to manage zero). One of the nice things about these scripts is that it's quick to make changes (as necessary) and go back to our day jobs.

That's all nice and good until we decide that the job needs to be changed substantially, and then a PITA to develop and debug, mostly because it feels like I'm shooting pool with a baseball bat.

Is there a more DotNet-y way to do Windows Scripting Host-like stuff that people have used and like? I'd prefer free/cheap tools, naturally.

Regards,

-Alan.

like image 244
AlanR Avatar asked Nov 19 '25 22:11

AlanR


2 Answers

PowerShell is the "next generation, .NET-based scripting platform" from Microsoft. I haven't looked at it in detail, but from what I've heard it's trying to combine the simplicity of Unix-style pipelines with the power of a rich object model.

Whether or not it fits in with exactly what you want to achieve is something I can't really say, of course - but it's certainly worth a look.

There are other .NET languages which are amenable to scripting - there are the dynamic languages such as IronRuby and IronPython, and also Boo (mostly static, but with duck-typing where you want it).

like image 59
Jon Skeet Avatar answered Nov 22 '25 00:11

Jon Skeet


I just stumbled upon http://www.csscript.net which let's you execute little c# scripts (no compiling). It's opensource to boot.

"CS-Script combines the power and richness of C# and FCL with the flexibility of a scripting system. CS-Script can be useful for system and network administrators, developers and testers. For any one who needs an automation for solving variety of programming tasks."

like image 25
AgentThirteen Avatar answered Nov 22 '25 01:11

AgentThirteen



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!