Login | |
|
 |
RE: VBScript - Control //NOLOGO from within script? - 1/11/2008 11:32:18 AM
|
|
 |
|
| |
TNO
Posts: 1247
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
hmm... All I can think of at the moment is a .wsh file: quote:
[ScriptFile] Path=C:\Users\-TNO-\Desktop\test7.vbs [Options] Timeout=0 DisplayLogo=0 But of course thats 2 files now as well. There is no way within the script to run with no logo like you can with timeout (I checked with an object browser with WSH 5.7) A possible alternative to have only 1 file is creating a non graphical hta to do the work instead of a vbs file. A little more wrapper work obviously, but its just 1 file.
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
 |
RE: VBScript - Control //NOLOGO from within script? - 1/14/2008 12:10:10 AM
|
|
 |
|
| |
ebgreen
Posts: 4971
Score: 31
Joined: 7/12/2005
Status: offline
|
The real problem is that you want to change the startup behavior of the interpreter from a script that the interpreter has to start up to run. Unless your script is capable of time travel, there is no way for it to go back and tell the interpreter that is should not have started with the logo.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: VBScript - Control //NOLOGO from within script? - 1/14/2008 4:18:11 AM
|
|
 |
|
| |
Rischip
Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
|
How is the executable which is getting information from the vbscript receiving the information. Is it through a pipe or console redirection ? Also is the executable launching the application?
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
 |
RE: VBScript - Control //NOLOGO from within script? - 1/14/2008 4:25:30 AM
|
|
 |
|
| |
ebgreen
Posts: 4971
Score: 31
Joined: 7/12/2005
Status: offline
|
I normally try to avoid carrying on the same discussion in multiple fora, but: Just to further the discussion, I would not be terribly happy if someone gave me a script to run and it globally changed the way that all my scripts functioned from then on.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: VBScript - Control //NOLOGO from within script? - 1/14/2008 4:58:53 AM
|
|
 |
|
| |
Rischip
Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
|
humbletech99, Please don't assume that you can read my mind. I do not believe I made the suggestion that the executable launch using the //NoLogo switch. I was collecting information. As a matter of fact my post made no mention of the //NoLogo switch. Now if would answer the questions that I actually did ask, then we could proceed. If you would rather assume, then I will bow out.
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
 |
RE: VBScript - Control //NOLOGO from within script? - 1/14/2008 5:13:25 AM
|
|
 |
|
| |
Rischip
Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
|
So the app is launching the script and reading the output. It is reading 1 single line of output which is why the logo messes things up. The output is read in a way which would be similar launching a script using app = shell.exec and reading in app.stdout ? If you were doing this in vbscript?
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
 |
RE: VBScript - Control //NOLOGO from within script? - 1/14/2008 5:15:01 AM
|
|
 |
|
| |
ebgreen
Posts: 4971
Score: 31
Joined: 7/12/2005
Status: offline
|
So if I understand correct ly, your plan is to allow a user to run the script like this if they want: CScript.exe MyScript.vbs /NologoSwitch In which case it will globally switch the logo off for all their other scripts. If I have this right I don't understand how it is better that telling the user to run this: CScript.exe //nologo //s MyScript.vbs Or even better yet: CScript.exe //nologo MyScript.vbs So that it does not make the change global. I want the people that I support to see the logo so that they can easily tell me what major version of the WSH they are running. As I said I would be very unhappy with any script that globally turned off the logo.
_____________________________
"... when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick Goog places to start:http://www.visualbasicscript.com/m_24727/tm.htm http://www.visualbasicscript.com/m_47117/tm.htm
|
|
| |
|
|
|
 |
RE: VBScript - Control //NOLOGO from within script? - 1/14/2008 6:55:44 AM
|
|
 |
|
| |
Rischip
Posts: 502
Score: 2
Joined: 3/26/2007
Status: offline
|
I think the only other option would be to compile the script into an executable. You can try iexpress which is built into Windows (at least it is in my XP). Just type iexpress at the command line. This creates a self extracting executable which will contain your vbscript. It will automatically extract it and run it. You can specify the command line to start the script with the //NoLogo command line argument. It should work for all of the purposes that you are requesting. The other option is a paid for item called exescript. I'm sure there are others, but I can't think of any at the moment.
< Message edited by Rischip -- 1/14/2008 7:36:23 AM >
_____________________________
Rischip Author of - The Grim Linker
|
|
| |
|
|
|
 |
RE: VBScript - Control //NOLOGO from within script? - 1/14/2008 9:34:40 AM
|
|
 |
|
| |
TNO
Posts: 1247
Score: 10
Joined: 12/18/2004
From: thenewobjective.com
Status: offline
|
I still think the html application idea would be easier.
< Message edited by TNO -- 1/14/2008 9:36:20 AM >
_____________________________
To iterate is human, to recurse divine. -- L. Peter Deutsch
|
|
| |
|
|
|
| |
|
|
 |
|
 |
|
|