Daft vbscript question

  • Thread starter Thread starter SteveKidd
  • Start date Start date
S

SteveKidd

Hi,

I've written a few scripts with adsi using vbscript but
can't seem to manage the basic task of opening notepad
and dumping the results into it.

I'm working along the lines of;
Set objNotepad = WScript.CreateObject
("Notepad.Application")
objNotepad.Visible = 1

Sorry for asking such a divvy question but can't seem to
find a reference library as to how to launch applications
and have text dumped into them... any good reference's
out there ?

cheers,
Steve
 
Hello Steve,

Do you really need to do this with Notepad? Couldn't you just write the
results to a file and then use notepad or another editor to view the
results?

Thanks,
Phil

This posting is provided "AS IS" with no warranties, and confers no rights.
 
Steve,
I don't use vbscripts but I suspect that it may the same
way it would be done in VB. Example:

SomeVariable=shell("notepad")

If you don't need to see the results in Notepad then agree
that you would better off just dumping the info to a text
file. Example:

open "c:\crap.txt" for append as #1
print #1, strVarThatHasText
close #1
 
Thanks for the response - I decided to give up and dump
it into internet explorer. As it happens this turned out
pretty good because the end user now gets a "pretty"
version of the test output.

ta,
Steve
 
Back
Top