English 中文(简体)
NET4.0 某些行动自动化/隐藏
原标题:.NET 4.0 Automating/Scripting certain actions

我是大学的低年级学生,对.NET框架相当陌生。

目前我从事信息技术工作时,有一定的程序,雇员检查MS办公室文件,打开x应用程序,一个接一个接一个,复制y文件,在z条件下等待,一个接一个。

这个过程很长,很乏味,非常容易人为错误。 因此, 我想知道,. NET 是否允许某些应用程序来写入给定的样本程序 :

open a program, input a string argument from an excel file, get the output of the program, paste the output of the program into another program, get the output of the 2nd program, open the output as a folder, etc

用户应尽量少做一些工作(提供一些文件路径和一次登录证书,并按下一些启动按钮)。

如果是的话,如果有人能推荐几个好的图书馆/API来研究,将不胜感激。

谢谢你抽出时间

编辑 1: System. 诊断性。 程序似乎处理的参数过错非常不顺利 。

最佳回答

尝试使用Powershell, 它更适合您想要做的事情。 良好的起始位置 :

http://technet.microsoft.com/en-us/library/ee221102

问题回答

我认为如果"http://www.autoitscript.com/site/autoit/"rel=“no follow” >AutoIt ,你可以更容易地做到这一点。

.NET/c#并不象其他人已经指出的那样,真正适合这项任务。





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签