Windows脚本:VBScript,DOS,JS,Python, [英] Windows Scripting: VBScript, DOS, JS, Python,

查看:65
本文介绍了Windows脚本:VBScript,DOS,JS,Python,的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

假设您主要是程序员和Linux系统管理员之类的C语法,并且您的任务是在Windows上创建一些简单的自动化任务(监视备份文件,进程监视......)。您更喜欢用哪种语言编写脚本?那里有大量的VBS脚本(使用VB语法),但我更喜欢与C相关的任何内容。

Say you were mainly a C-syntax like programmer and Linux systems administrator, and you were tasked with creating some simple automation tasks on Windows (monitoring of back-up files, process monitoring, ...). Which language would you prefer to write your scripts in? There's a large collection of VBS-scripts out there (using VB syntax), but I'd prefer anything more C-related.

使用脚本的最佳体验是什么?对于Windows?对某种语言有任何明显的下降或上升吗?

What are your best experiences in using scripts for Windows? Any obvious down- or upside to a certain language?

推荐答案

我会使用 Powershell


  • 它有一个模糊的C语合成语。

  • 它有一个集成的shell。

  • 最新版本(目前在CTP中)包含一个内置IDE(虽然与其他第三方相比有限)。

  • 它可以轻松访问.Net框架中90%的功能。

  • 展望未来,MS产品将明确提供Powershell集成。

  • 它支持管道。

  • It has a vaguely C-like syntaxt.
  • It has an integrated shell.
  • The newest version (currently in CTP) includes a builtin IDE (Although it is limited compared to other 3rd party ones).
  • It has easy access to something like 90% of the functionality in the .Net framework.
  • Going forward, MS products will explicitly provide Powershell integration.
  • It supports pipes.

这篇关于Windows脚本:VBScript,DOS,JS,Python,的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆