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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by humbletech99

  1. humbletech99

    VBScript - Control //NOLOGO from within script?

    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...
  2. humbletech99

    VBScript - Control //NOLOGO from within script?

    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...
  3. humbletech99

    VBScript - Control //NOLOGO from within script?

    yes I know, it's just inconvenient. It would be good if the script could switch this off...
  4. humbletech99

    VBScript - Control //NOLOGO from within script?

    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.
  5. humbletech99

    VBScript - Control //NOLOGO from within script?

    no I want to give people a script to run from the command line and I cannot do this against their machines I have no access to.
  6. humbletech99

    VBScript - Control //NOLOGO from within script?

    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.
  7. humbletech99

    VBScript - Control //NOLOGO from within script?

    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...
  8. humbletech99

    VBScript - String Formatting (output in to columns)

    oh yes I remember that vbs does this now, it's how you use backpassing of parameters.... an ugly practice.
  9. humbletech99

    VBScript - String Formatting (output in to columns)

    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.
  10. humbletech99

    VBScript - String Formatting (output in to columns)

    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
  11. humbletech99

    VBScript - String Formatting (output in to columns)

    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")
  12. humbletech99

    VBScript - String Formatting (output in to columns)

    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...
  13. humbletech99

    VBScript - Correlating remote file usage with remote session

    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...
  14. humbletech99

    VBScript - String Formatting (output in to columns)

    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...

Part and Inventory Search

Back
Top