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...
but I want to monitor the system in real time rather than event log parsing or alerting. Hence if I query the event logs and then find some error, mark the system as a problem, how then do I know when to mark the system as OK again just from the event logs...
This gets sticky and there is sooo...
This means that I cannot monitor that the shadow copy services are running.
Is there some way to programmatically check whether Volume Shadow Copies are actually working since I can't just check to see if the service is running?
Does the Volume Shadow Copy Service that comes with Windows Server 2003 only start and come in to the running state in service control when it is actually taking a snapshot?
I have been googling and reading articles but they tend to all just tell me the basics of how to use it or the...
does this actually solve the problem with a restart command or are you actually talking about a start command which brings us back to square one...
if you issue a start command before the stop has completed, it won't work, the service will stop later and stay stopped... hence the whole...
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.