Member Login

Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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.

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

Display Results without writing to file

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.


RE: Display Results without writing to file

Duh, look for "clipboard"  Sorry that I omitted that in the previous post.

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

RE: Display Results without writing to file

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.


'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    

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

Hope it helps

Red Flag This Post

Please let us know here why the post below is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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!


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