PC Review


Reply
Thread Tools Rate Thread

Daft vbscript question

 
 
SteveKidd
Guest
Posts: n/a
 
      8th Jul 2003
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
 
Reply With Quote
 
 
 
 
Phil Waligora [MSFT]
Guest
Posts: n/a
 
      10th Jul 2003
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.

"SteveKidd" <(E-Mail Removed)> wrote in message
news:0d3b01c34542$a2c8c2d0$(E-Mail Removed)...
> 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



 
Reply With Quote
 
John Taylor
Guest
Posts: n/a
 
      11th Jul 2003
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


>-----Original Message-----
>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.
>
>"SteveKidd" <(E-Mail Removed)> wrote in message
>news:0d3b01c34542$a2c8c2d0$(E-Mail Removed)...
>> 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

>
>
>.
>

 
Reply With Quote
 
SteveKidd
Guest
Posts: n/a
 
      15th Jul 2003
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

>-----Original Message-----
>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
>
>
>>-----Original Message-----
>>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.
>>
>>"SteveKidd" <(E-Mail Removed)> wrote in message
>>news:0d3b01c34542$a2c8c2d0$(E-Mail Removed)...
>>> 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

>>
>>
>>.
>>

>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
A daft question (sorry) =?Utf-8?B?V2F5bmUtSS1N?= Microsoft Frontpage 1 8th Oct 2007 11:04 AM
daft question; but you never know. milk Windows XP Help 0 8th Mar 2007 01:30 PM
Very daft question =?Utf-8?B?c2N1YmFkaXZlcg==?= Microsoft Access Queries 5 17th May 2006 05:11 PM
daft question andrew Microsoft Windows 2000 RAS Routing 1 14th May 2004 01:32 AM
daft question lesley Windows XP New Users 1 9th Mar 2004 12:03 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:31 PM.