Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Skip Microsoft's message at beginning of a file

When running a vbs script from a bat file, it is sometimes written in header output file

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

I know that doing more +2 on the output file, I am able to ignore that. Nevetheless I'd like to know if it is possible to do that differently.

Thank you in advance

like image 849
new Avatar asked Apr 22 '13 22:04

new


1 Answers

Try the //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
like image 92
Preet Sangha Avatar answered Sep 28 '22 07:09

Preet Sangha