Search found 13714 matches

by jvierra
Fri Jun 29, 2007 6:56 am
Forum: VBScript
Topic: Reading in multipule line text via StdIn
Replies: 6
Views: 3522

Reading in multipule line text via StdIn

Great - glad to help. That one threw me fo a loop when reading in unicode files. That's when I found the KB and tested the incremental read method.

Your should work woth readline and a Ctrl-Z except if you are MUI.
by jvierra
Fri Jun 29, 2007 6:33 am
Forum: Other Scripting Languages
Topic: Article: Eight Reasons to use JScript
Replies: 12
Views: 18166

Article: Eight Reasons to use JScript

Bill Just decided to check some of my systems. MPS Reports (%windir%MPSReports) no longer use much scrip and what is used is vbscript. Note that MPSReports is a good place to see how MS collects information about a platforms oinstallation status and state using a completely stand-alone commandline p...
by jvierra
Fri Jun 29, 2007 6:19 am
Forum: Other Scripting Languages
Topic: Article: Eight Reasons to use JScript
Replies: 12
Views: 18166

Article: Eight Reasons to use JScript

The MS product analysis tools use jscript for some components and versions. YOu can download the tools at ms downloads I believe. From teh MS installer packages ( search %windir% for "*.js" you;ll find a ton of scripts. function ErrorSkipBtnHandler(){ if (InActivation_AppMode()) { window.external.Ha...
by jvierra
Fri Jun 29, 2007 2:32 am
Forum: Other Scripting Languages
Topic: Article: Eight Reasons to use JScript
Replies: 12
Views: 18166

Article: Eight Reasons to use JScript

Agreed.

It's interesting to note that for a very large number of internal scripts MS uses JScript. They also have a pretty good set of JS functionlibraries that are used in many products.
by jvierra
Thu Jun 28, 2007 3:30 am
Forum: Other Scripting Languages
Topic: Article: Eight Reasons to use JScript
Replies: 12
Views: 18166

Article: Eight Reasons to use JScript

Bill Yes I agree mostly. JScript is much better for designing complex code structures and has great support for exception handling. The biggest drawback for many admins is a lack of any formal training in programming. JScript is a more technical language by design and does require a fairly long and ...
by jvierra
Thu Jun 28, 2007 3:22 am
Forum: VBScript
Topic: Reading in multipule line text via StdIn
Replies: 6
Views: 3522

Reading in multipule line text via StdIn

Ctrl-Z.

That is the text tream end-of-stream trigger. You probably won't get it if you are doing paste as paset uses a different method for feeding the clipboard to the console.
by jvierra
Wed Jun 27, 2007 8:15 am
Forum: VBScript
Topic: Reading in multipule line text via StdIn
Replies: 6
Views: 3522

Reading in multipule line text via StdIn


reading = true
While reding line = WScript.StdIn.ReadLine()
if line = "some end value" Then
reading = false
End If
input = input & lineWend
depends on exact format of the input stream.
by jvierra
Wed Jun 27, 2007 12:40 am
Forum: VBScript
Topic: Delete file if Process is terminated
Replies: 4
Views: 1746

Delete file if Process is terminated

This apears to be a usual issue with TS. You have moved the user profile under TS sessions. The profile crates a temporary file folder under teh user temp folder. The TS session does not completely delete the ftemporary files when the session terminates. Look at teh TS session settings and be sure t...
by jvierra
Mon Jun 25, 2007 5:27 am
Forum: VBScript
Topic: Get <span> values from array
Replies: 8
Views: 6568

Get <span> values from array

PowerShell TFM is, in my opinion, an excelent book to start with. It is written for both vbscrters and for those new to scripting. Don and Jeff leave little to be assumed in their overview of PowerShell as an admin scripting environment. Idelly when using HTML for anythng more than a basic HTA proje...
by jvierra
Sat Jun 23, 2007 4:17 am
Forum: VBScript
Topic: Get <span> values from array
Replies: 8
Views: 6568

Get <span> values from array

Had some time to kll so I made the demo work your way. Here is a working sample that will query and DNS server in the domain and return a list of zones. Click on the zone and it will call a sub and the sub will tell you what you clicked. All of this takes one line of code: "window.event.srcElement.i...