Daft vbscript question


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
 
Ad

Advertisements

P

Phil Waligora [MSFT]

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

John Taylor

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
 
Ad

Advertisements

S

SteveKidd

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top