Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Donate Today!

Do you enjoy these
technical forums?
Donate Today! Click Here

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Display Results without writing to file

SWarrior (MIS)
31 Mar 05 8:42
I need to be able to display the results of my script without writing them to a file.  I'm using an array to store my results, but the content is WAY to large for a single message box, and I need to be able to see all of the content at once.I can accomplish this by writing to a text file and then using notepad to open it, but then I have a residual file on the hard drive.  Is there a way to post the content INTO a notepad without actually having a file for notepad to open ??  Basically, have my script read from the array and then write directly to notepad?  When I close notepad, Nothing is saved unless I specifically say so.

-SWarrior
pkailas (Programmer)
31 Mar 05 8:45
check this out.

http://www.pressroom.com/~tglbatch/wshindex.html

_______
I love small animals, especially with a good brown gravy....

pkailas (Programmer)
31 Mar 05 8:46
Duh, look for "clipboard"  Sorry that I omitted that in the previous post.

_______
I love small animals, especially with a good brown gravy....

BillDoor (IS/IT--Management)
31 Mar 05 8:55
This method uses IE instead of notepad, but lets you structure your spript's output just like any web page, you can use colour and different sizes.

CODE

'Open IE and set at required size
Set objExplorer = CreateObject("InternetExplorer.Application")
objExplorer.Navigate "about:blank"  
objExplorer.ToolBar = 0
objExplorer.StatusBar = 0
objExplorer.Width = 800
objExplorer.Height = 570
objExplorer.Left = 0
objExplorer.Top = 0
objExplorer.Visible = 1  

'Create a document to accept the output.
Set objDocument = objExplorer.Document    
objDocument.Open


'use objDocument.Writeln to add text to the document
'don't forget to use html tags to arrange the data.
objDocument.Writeln "Hello my friends<br>"
objDocument.Writeln "Hello my friends"
objDocument.Writeln "Hello my friends<br>"
objDocument.Writeln "Hello my friends<br>"


'finally close the document. IE will stay open until closed.
objDocument.Close

Hope it helps

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close