Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Seperate window pops up saying Windows Script Host Version

Status
Not open for further replies.

bolobaboo

MIS
Aug 4, 2008
120
US
Hi
I am getting following message in seperate window ..

"Microsoft (R) Windows Script Host Version 5.6
Copyright (C) Microsoft Corporation 1996-2001. All rights reserved."

How can i stop appearing ?


 
Use the //NoLogo argument.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
Hi
PHV
Is there way we can put something in code so it don't start ?

THX
 
Hi
PHV
I mean in vbscript ? You mentioned that i should start start script with //NoLogo ( c:\test.vbs //NoLogo ) ..correct ?


 
How do you actually start your script ?

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
I just double click on file name ( test.vbs) on my desktop.
THX
 
Seems you've choosed CScript (console mode) instead of WScript (GUI mode) as the default.

Hope This Helps, PH.
FAQ219-2884
FAQ181-2886
 
How do i change to wscript ?
Below is vpscript
===========
'=========================================================
'======= Created and maintained by Anil Maurya V 1.5 =====
'=========================================================
sSourceFile = "C:\anil\CBDSTSM01.TXT"
sDestinationFile = "C:\anil\CBDSTSM01.log"
strComputer = "."

Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
Set wshShell = WScript.CreateObject ("WSCript.shell")

wshshell.currentdirectory="c:\program files\tivoli\tsm\baclient"
' Run application
WshShell.Run "dsmadmc.exe -TCPSERVERADDRESS=CBDSTSM1 -TCPPORT=1610 -outfile=" & sSourceFile,1,true

' Append todays date and time to C:\anil\CBDSTSM01.log ..
Set pFSO = CreateObject("Scripting.FileSystemObject")
ForAppending=8
Set filetxt = pFSO.OpenTextFile(sDestinationFile, ForAppending, True)
filetxt.WriteLine("===============================================================================")
filetxt.WriteLine("===============================================================================")
filetxt.WriteLine( "=================== "&now()&" ===========================")
filetxt.WriteLine("===============================================================================")
filetxt.WriteLine("===============================================================================")
filetxt.Close

set ots=pFSo_Opentextfile(sSourceFile,1,true,-2) 'using system default format(?)
s=""
on error resume next
s=s & ots.readall
on error goto 0
ots.close
set ots=pFSo_Opentextfile(sDestinationFile,8,true,-2)
ots.write s
ots.close
set ots=nothing
pFSO.DeleteFile sSourceFile, True
set pFSO=nothing
 
[tt][ol][li]Explorer > Tool (T) > Folder items O > FileTypes tab[/li]
[li]Select vbs type > Advanced button > Select open (&O) command > Edit button[/li]
[li]Edit the command line with //nologo inserted.[/li][/ol][/tt]
 
I used wscript instead of cscript. It worked.
Thank you tsuji
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top