Search found 182 matches

by rasimmer
Tue Dec 22, 2009 3:04 am
Forum: VBScript
Topic: Sending email through vbscript
Replies: 3
Views: 2292

Sending email through vbscript

You could query a group(s) from Active Directory, populate the email addresses of the members, and dynamically create the To: users.
by rasimmer
Mon Dec 07, 2009 4:22 am
Forum: VBScript
Topic: Read and report from logfiles
Replies: 5
Views: 2327

Read and report from logfiles

Hey, that's cheating...how dare you use a pre-compiled EXE... :oP
by rasimmer
Sun Dec 06, 2009 10:42 pm
Forum: VBScript
Topic: Efficiency
Replies: 17
Views: 7322

Efficiency

Ooopss..

Dim strLine : strLine = Trim(oTS.ReadLine)
by rasimmer
Fri Dec 04, 2009 2:53 am
Forum: VBScript
Topic: Efficiency
Replies: 17
Views: 7322

Efficiency

I would recommend utilizing Option Explicit which will require you to declare your variables Pick a naming convention. Is a string identified by s or str... You had defined strComputer = sServer. Your not modifying the variable, so I changed your code to just use the sServer variable Ensure you are...
by rasimmer
Fri Nov 20, 2009 3:16 am
Forum: VBScript
Topic: Adding a Timeout?
Replies: 6
Views: 3680

Adding a Timeout?

I have a couple of suggestions, firstly, this piece of code: Do Until objRecordSet.EOF strComputer=objRecordSet.Fields("Name").Value set objWMIDateTime = CreateObject("WbemScripting.SWbemDateTime") set objWMI = GetObject("winmgmts:" & strComputer & "rootcim...
by rasimmer
Fri Nov 13, 2009 12:14 am
Forum: Other Scripting Languages
Topic: window.resizeto based on content
Replies: 5
Views: 6145

window.resizeto based on content

Can you be more specific on "content displayed"? Are you saying if you only displayed an image that was 120 x 120 that the window would be resized to only 120 x 120?
by rasimmer
Tue Nov 03, 2009 4:00 am
Forum: VBScript
Topic: RegEx for Versions
Replies: 2
Views: 2250

RegEx for Versions

Ummm...thanks... Adam Sandler screaming voice, "This would have been nice to know YESTERDAY" (Wedding Singer) ...err...at the end of August before I wrote lots of ugly code to do the parsing...
by rasimmer
Tue Oct 27, 2009 1:34 am
Forum: VBScript
Topic: Regular Expression question...
Replies: 2
Views: 2293

Regular Expression question...

Curious to know if it's possible to do a different replace for each match in a string. strText = "12345 John w3rser John 234rw John sdfasadg" Dim objRegEx : Set objRegEx = CreateObject("VBScript.RegExp") objRegEx.Global = TRUEobjRegEx.IgnoreCase = TrueobjRegEx.Pattern = "(Jo...
by rasimmer
Wed Oct 21, 2009 12:00 am
Forum: VBScript
Topic: Help Required Please
Replies: 4
Views: 2643

Help Required Please

You can get "Access Denied" errors a couple of ways here. The most likely reason is that the log is is opened with another script. If you have 3 people running this script at the same time, only one person is going to open the log, the others would get access denied because the script will...
by rasimmer
Tue Oct 20, 2009 6:16 am
Forum: VBScript
Topic: Hide screen untill script is done?
Replies: 5
Views: 2909

Hide screen untill script is done?

Are your scripts running Sychronous or Asynchronous? There should be a GPO setting for this?