欢迎光临 Enjoy IT (ITECN.NET) 登录 | 注册 | 帮助

UU'S T&T

TIPS AND TROUBLESHOOTS FOR WINDOWS

公告

  • 本Blog站点上的任何言论仅代表个人观点,与其所在的公司没有任何关系。本Blog站点的内容是按原样提供的,作者与其公司并不对其提供任何种类的担保。此外还否认所有暗示的保证,包括但不局限于在任何试销性或某一特定用途的适用性方面的暗示保证。由于本站内容的使用或性能表现带来的全部风险将由使用者自己承担。任何由于使用或无法使用本站内容而带来的损失(包括但不局限于商业利润、业务中断、业务信息或其他财产上的损失),即使在 本站作者曾经被提醒可能出现这些损失的情况下,本站 及其作者或涉及内容创建的任何其他人等对任何上述的损失概不负责。
    ·本BLOG的内容均属技术交流之用,本人对所发表的文章、图片、随笔保留一切权利。
    如文章、图片、随笔转载请注明:
    作者姓名:尤扬
    文章来源URL:
    http://blogs.itecn.net/blogs/youyang
    同时请通过EMAIL通知本人:
    youyang1983◎hotmail.com
    ·如果通过EMAIL与我联系,并最终解决的问题,我将发表于本BLOG进行技术分享,如果涉及隐私或有特殊要求请于EMAIL中说明!
    本人联系方式:
    MSN ID:youyang1983◎hotmail.com(常用)
    QQ ID:85836514
    EMAIL:v-yayou@microsoft.com
    ·技术就是无条件共享


    2005年7月 Microsoft MVP for Windows-Shell\User
    2006年7月 Microsoft MVP for Windows-Shell\User
    2007年7月 Microsoft MVP for Windows-Shell\User

Microsoft

朋友的网站

HelpDesk-日志篇[后续]

上次在《HelpDesk-日志篇》里面提到了写一个查询日志的小工具,来代替过长的URL输入。

恩,写一个技术演示版本的代码吧,超级简单的:

using System; using System.Diagnostics; namespace EQhelperTechDemo { /// /// EQHelper 技术实现版本 /// class MainClass { private string eventid=string.Empty; private string source=string.Empty; /// /// 应用程序的主入口点。 /// [STAThread] static void Main(string[] args) { MainClass mc= new MainClass(); Console.WriteLine("Welcome to Event Query Tools"); Console.WriteLine("日志ID:"); mc.eventid= Console.ReadLine(); Console.WriteLine("来源:"); mc.source=Console.ReadLine(); mc.OpenWithStartInfo(); } /// /// Uses the ProcessStartInfo class to start new processes, both in a Normal /// mode. /// public void OpenWithStartInfo() { ProcessStartInfo startInfo = new ProcessStartInfo("IExplore.exe"); startInfo.WindowStyle = ProcessWindowStyle.Normal; startInfo.Arguments = "http://www.microsoft.com/products/ee/transform.aspx?ProdName=Windows%20Operating%20System&ProdVer=5.1.2600.2180&EvtID="+eventid+"&EvtSrc="+source+"&LCID="; Process.Start(startInfo); } } }

其实就是利用Process类,打开了一个含有默认URL的IE。大家用CSC编译一次就成了。

BTW,如果ITECN能提供下载的小空间就好啦~~~

另外,关于工具,比如Source那里,因为Windows的事件来源都是固定的,所以可以用下拉菜单来做,呵呵,大家如果感兴趣的,自己可以试试。

Posted: 2006年8月22日 11:02 作者 youyang

评论

df 说:

CSC是什么?
# 八月 22, 2006 17:17

briggs air filter 说:

Late and went to bed while he was seemingly thinking of the subject of our discussion it must therefore give him all the psychological.    <a href= http://er.gogofacility.com/sears-craftsman-lawn-mower-parts.htm#sears+craftsman+lawn+mower+parts >sears craftsman lawn mower parts</a> [url=http://er.gogofacility.com/sears-craftsman-lawn-mower-parts.htm#sears+craftsman+lawn+mower+parts]sears craftsman lawn mower parts[/url]    <a href= http://er.gogofacility.com/atv-mower.htm#atv+mower >atv mower</a> [url=http://er.gogofacility.com/atv-mower.htm#atv+mower]atv mower[/url]    <a href= http://er.gogofacility.com/tecumseh-air-filter.htm#tecumseh+air+filter >tecumseh air filter</a>    <a href= http://er.gogofacility.com/mower-deck.htm#mower+deck >mower deck</a>    <a href= http://er.gogofacility.com/yamaha-lawn-mower.htm#yamaha+lawn+mower >yamaha lawn mower</a>  

# 二月 3, 2007 11:49
禁止匿名发表评论