Search found 13714 matches

by jvierra
Sat Nov 24, 2007 2:39 am
Forum: VBScript
Topic: Trying to guess around ActiveX=COM Components
Replies: 3
Views: 1213

Trying to guess around ActiveX=COM Components

asgarcymed I thought I would try to take a few lines to try to clarify this for you and others who may feel as you do about COM. First let me ask why you refer to COM and/or ActiveX as COM=ActiveX. I suspect this may be a typo or some mis-translation from your keyboard. COM is a technology designed ...
by jvierra
Thu Nov 22, 2007 2:41 am
Forum: VBScript
Topic: Login Script for Windows 2003 - Help!
Replies: 6
Views: 2768

Login Script for Windows 2003 - Help!

This
WshNetwork.RemoveNetworkDrive oDrives.Item(iCounter), True


Needs to be this:

WshNetwork.RemoveNetworkDrive oDrives.Item(iCounter), True, True


You need to use the seconfd "True" to tell it to update the profile or the drive will return as it is still in the profile.

by jvierra
Wed Nov 21, 2007 3:34 am
Forum: VBScript
Topic: Login Script for Windows 2003 - Help!
Replies: 6
Views: 2768

Login Script for Windows 2003 - Help!

On Erro will uncover many syntax errors. fserver = XX - is missing quotes FOR loop is missing Next Outer IF is missing END IF A delay after teh unmap will ensure that drive letter is free for re-use. Adding two "True" to unmap will force profile update. objNetwork.RemoveNetworkDrive colDrives.Item(i...
by jvierra
Mon Nov 19, 2007 4:27 am
Forum: VBScript
Topic: Terminate Process by Network Service
Replies: 6
Views: 4711

Terminate Process by Network Service

I recommend downloading the help file from MS but Jeff's reference to his re-write is more useful for learning vbscript. The MS docs are thin and in many cases misleeding if you are not used to MS ways. Jeff has done an excellent job of reformulating the docs specifically for admins and will save yo...
by jvierra
Sun Nov 18, 2007 6:43 am
Forum: VBScript
Topic: About Catastrophic failure error message
Replies: 4
Views: 4038

About Catastrophic failure error message

I think I see the problem. The demo version needs to pop up a child dialog. This cannot be done from vbscript or WSH as there is no main window for the dialog to be a child of. The registered version does not disply this "demo" dialog and so should not be a problem for scripting since it DOES work u...
by jvierra
Sun Nov 18, 2007 5:13 am
Forum: VBScript
Topic: Listbox fill in VBScript on HTML
Replies: 4
Views: 6793

Listbox fill in VBScript on HTML

Sample code using your HTML with some soimplification has been added to the ScriptVault:

http://www.scriptinganswers.com/vault/W ... istbox.zip
by jvierra
Sun Nov 18, 2007 4:40 am
Forum: VBScript
Topic: Listbox fill in VBScript on HTML
Replies: 4
Views: 6793

Listbox fill in VBScript on HTML

The issues you are having are with HTML/DHTML and the object moel for the IE browser. Very rfew scripters are completely familiar with DHTML as it is part of the Web development API and not a part of VB/VBS. A good book on DHTML would help if you plan on doing a lot of it. The issue here got me too....
by jvierra
Sat Nov 17, 2007 4:20 pm
Forum: VBScript
Topic: Listbox fill in VBScript on HTML
Replies: 4
Views: 6793

Listbox fill in VBScript on HTML

Code: Select all

	
Sub FillListbox()
	
    dim i
    dim b(2)
   
    b(0) = "ABC"
    b(1) = "DEF"
    b(2) = "GHI"
    For i = 0 to 2
         set oOption = document.createElement("OPTION")
         AvailableOptions.Options.add oOption
         oOption.innerText = b(i)
         oOption.value = i
    Next
End Sub
by jvierra
Fri Nov 16, 2007 3:48 am
Forum: VBScript
Topic: Logfile with Columns
Replies: 2
Views: 572

Logfile with Columns

Look into the ADO text file reader.

You can also import it into an Excel spreadsheet as a fixed width data file.

by jvierra
Fri Nov 16, 2007 3:06 am
Forum: VBScript
Topic: Terminate Process by Network Service
Replies: 6
Views: 4711

Terminate Process by Network Service

Try it this way:
objShell.Run("taskkill /F /FI ""USERNAME eq NT AUTHORITYNETWORK SERVICE"" /IM wmiprvse.exe")

Single quotes won't work on VBS run commands or in the shell.