thanks, that's pretty interesting... not really interested in 3rd party proprietary stuff any more these days though...
EBgreen, I may make the //nologo change an option...
dilettante, that's an interesting idea. I tend to like to stick with standardization and on this occasion, rather than using some non-standard 3rd party script host, (which may make my program less portable), I've decided that I may just add a script //nologo //s inside the script so that the...
because the definition of the progam I am writing must integrate with another program which only allows one line of output and the logo would sploit that, so the only output received would be that of the first line of the logo.
There is no opportunity to change than program.
yes but this sucks because then you have to pass around another file with that file all the time, it's as bad as having to wrap it in a batch file.
I did find that in the docs, but it's really not what I want to do.
I need this thing to be self contained.
I'd like the ability to switch off the stupid logo from within my scripts just for their own execution. Having to tell people to do //nologo is lame and I am not going to go around to all my servers or someone else's servers to do cscript //nologo //s on all of them.
Is there a way to switch...
I didn't realize that it was being passed by reference, I thought it would have been passed by value...
In any event, it doesn't really matter, it still works... but thank you very much for pointing that out, it might save me a bug in future.
err I meant for that + to be a &... but it works anyway, that was a quick write off the top of my head just to illustrate...
but yes your approach is even slightly better. Thanks
I've just written a very simple padding function to take care of it. In fact, I thought of something much simpler than the examples I've seen:
function pad(strText)
strText = strText + Space(50)
strText = Left(strText, 50)
pad = strText
end function
strVar = pad("something")
I tried the right justify one for example but couldn't make it work:
MsgBox Format("test", String(50, "@"))
Microsoft VBScript runtime error: Type mismatch: 'Format'
I don't understand Format, where did you get this function from? It must be a custom function, not an in-built one?
I think this...
I have some VBScript which can query the remote sessions on a server to tell me what users are connected from which computers (like net session). It can also tell me which users are using which files (like net file).
The problem is, I'm not sure how to correlate the two so that I can show which...
I notice there are doesn't seem to be any proper string formatting in VBScript in order to specify how output strings should come out.
I am trying to align output into clear columns, regardless of the length of the various column inputs. Hence I need a way of stating that a column should be X...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.