If there was some way to suppress the writing of the first two lines that would be nice but not necessary.
Incidentally, you don't need that single quote mark before the short filename.
To run a VBscript with cscript.exe, without those 2 lines, you can add the //Nologo switch after the cscript command thus:
cscript //Nologo LongFileName.vbs C:/PROGRA~1/MOZILL~1\firefox.exe>vb.txtAlternatively, you can beforehand get cscript.exe to save the //Nologo option by doing this:
cscript //Nologo //SAfterwards, when you run any script with cscript.exe, on the same computer system, the //Nologo option is default and need not be included in the command. However this has the disadvantage that if the command is used on another system the option may or may not have been thus saved, and therefore the output of the script is unpredictable. So you should always include the //Nologo switch when supplying the script and command to other people (or explain all of the above, whichever seems appropriate!)
To restore the default behaviour to cscript.exe:
cscript //Logo //SUse either switch to force the desired behaviour when running a script.
Although I have used capital letters N and L in the switches, they are not case sensitive.
type cscript /? at the prompt to see full details of options.
C:\>cscript //nologo //S
Command line options are saved.
C:\>cscript //logo //S
Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.
Command line options are saved.
C:\>cscript //nologo //S
Command line options are saved.