Search found 182 matches

by rasimmer
Fri Apr 03, 2009 6:22 am
Forum: Other Scripting Languages
Topic: Building Tables...
Replies: 5
Views: 3978

Building Tables...

But see, that's the thing about being able to find something on the web, you have to know what to search for. I searched atleast 20 times with .createElement("img") + VBS + VBscript and only found a plethora of articles on JScript, which I don't use very often. I was about to start developing again ...
by rasimmer
Fri Apr 03, 2009 4:29 am
Forum: Other Scripting Languages
Topic: Building Tables...
Replies: 5
Views: 3978

Building Tables...

There are 2 basic ways to create tables in a HTA (or any web-based code), and that is string concantenation (which I normally use): VbScript:   strTable = "<table><thead><tr><td>Name</td><td>Salary</td></tr></thead>" strTable = strTable & "<tbody><tr><td>Frank</td><td>$52,362.54</td></tr>" strTable ...
by rasimmer
Thu Apr 02, 2009 6:50 am
Forum: VBScript
Topic: Enumerate Local Administrators
Replies: 1
Views: 1378

Enumerate Local Administrators

There are several functions I've posted that use the Win32_PingStatus and there are a bunch of scripts with examples of using the FileSystemObject (FSO) to open a text file and read it one line at a time. Just do the Forum Search and you can do a little copying and pasting and easily accomplish that...
by rasimmer
Wed Apr 01, 2009 7:55 am
Forum: VBScript
Topic: Comparison Scripting
Replies: 9
Views: 3138

Comparison Scripting

Have you ever implemented the 'onclick' attribute using the dynamic table generation. I have tried several things:
img.onclick = vbScript:Test()
img.onclick = "vbScript:Test()"

img.onclick = Test()

img.onclick = "Test()"

img.onclick = Test

img.onclick = "Test"
by rasimmer
Wed Apr 01, 2009 2:29 am
Forum: VBScript
Topic: Open Printer Properties
Replies: 3
Views: 2135

Open Printer Properties

Basically, what I'm trying to accomplish is to make a HTA that would emulate the Printers Control Panel applet in Windows. We basically have users locked down tight and the way that printers settings are stored done in a text file. When the OS loads we read the textfile and run a script to load all ...
by rasimmer
Wed Apr 01, 2009 2:29 am
Forum: VBScript
Topic: Open Printer Properties
Replies: 3
Views: 2135

Open Printer Properties

Basically, what I'm trying to accomplish is to make a HTA that would emulate the Printers Control Panel applet in Windows. We basically have users locked down tight and the way that printers settings are stored done in a text file. When the OS loads we read the textfile and run a script to load all ...
by rasimmer
Wed Apr 01, 2009 1:10 am
Forum: VBScript
Topic: Find Local Security Settings remotely
Replies: 2
Views: 1037

Find Local Security Settings remotely

Out of just pure curiousity, why are you trying to get this information? Local Policy settings can be managed locally, but can be overwritten from settings from Active Directory. Utilizing RSOP would tell you what the final policies are once the computer has finished loading. Typically, all policies...
by rasimmer
Tue Mar 31, 2009 1:02 am
Forum: VBScript
Topic: Script to Update Phone Numbers
Replies: 15
Views: 6290

Script to Update Phone Numbers

So, it sounds to me the best logic would be to:


Open the text file
Read a line
Split the line
Get the user (i.e. BrownB)
Search AD for the User
Connect to the User
Update the phone number
by rasimmer
Mon Mar 30, 2009 11:59 pm
Forum: VBScript
Topic: Script to Update Phone Numbers
Replies: 15
Views: 6290

Script to Update Phone Numbers

Here's another article on using regular expressions to update phone numbers...

http://technet.microsoft.com/en-us/maga ... puzzlelink
by rasimmer
Mon Mar 30, 2009 11:43 pm
Forum: VBScript
Topic: Script to Update Phone Numbers
Replies: 15
Views: 6290

Script to Update Phone Numbers

You need to look into Regular Expressions: http://www.microsoft.com/technet/script ... y0415.mspx
What are you updating? Active Directory? Another text file?