【问题标题】:Skip Microsoft's message at beginning of a file在文件开头跳过 Microsoft 的消息
【发布时间】:2013-04-16 00:03:51
【问题描述】:

从bat文件运行vbs脚本时,有时会写在头输出文件中

Microsoft (R) Windows Script Host Version 5.8 
Copyright (C) Microsoft Corporation 1996-2001. Tous droits r‚serv‚s
example: cscript myvbs.vbs file.txt >result.txt

我知道在输出文件上做更多+2,我可以忽略它。尽管如此,我想知道是否有可能以不同的方式做到这一点。

提前谢谢你

【问题讨论】:

    标签: batch-file vbscript


    【解决方案1】:

    试试//Nologo Prevent logo display: No banner will be shown at execution time

    C:\>cscript
    Microsoft (R) Windows Script Host Version 5.8
    Copyright (C) Microsoft Corporation. All rights reserved.
    
    Usage: CScript scriptname.extension [option...] [arguments...]
    
    Options:
     //B         Batch mode: Suppresses script errors and prompts from displaying
     //D         Enable Active Debugging
     //E:engine  Use engine for executing script
     //H:CScript Changes the default script host to CScript.exe
     //H:WScript Changes the default script host to WScript.exe (default)
     //I         Interactive mode (default, opposite of //B)
     //Job:xxxx  Execute a WSF job
     //Logo      Display logo (default)
     //Nologo    Prevent logo display: No banner will be shown at execution time
     //S         Save current command line options for this user
     //T:nn      Time out in seconds:  Maximum time a script is permitted to run
     //X         Execute script in debugger
     //U         Use Unicode for redirected I/O from the console
    

    【讨论】:

    • 感谢您提供所有详细信息。没关系!
    猜你喜欢
    • 2015-06-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-12
    • 2013-09-30
    • 1970-01-01
    相关资源
    最近更新 更多