Search found 182 matches

by rasimmer
Thu Feb 11, 2010 1:54 am
Forum: VBScript
Topic: Automating Remote Assistance
Replies: 3
Views: 7505

Automating Remote Assistance

I've parused the web for solutions on this. We are in the progress of testing Win 7, but skipped Vista, so the bulk of the infrastructure is XP. We have a button "Start Remote Assist" on a HTA or whatever, that when clicked opens hcp://CN=Microsoft%20Corporation,L=Redmond,S=Washington,C=US/Remote%20...
by rasimmer
Thu Feb 04, 2010 7:49 am
Forum: VBScript
Topic: objshell.run using variables that have spaces
Replies: 7
Views: 4917

objshell.run using variables that have spaces

I would highly suggest getting this working in a VBScript BEFORE placing it in an HTA. I write code in sections. If I want a script that is going to perform 5 tasks, I will typically modularize the code (place in SubRoutines and Functions) and create a script for each task and get them working. Then...
by rasimmer
Thu Feb 04, 2010 7:37 am
Forum: VBScript
Topic: objshell.run using variables that have spaces
Replies: 7
Views: 4917

objshell.run using variables that have spaces

There a couple of ways to do it, however, you have some other items wrong. - If there are parentheses, they go around the entire statement - No parentheses if you're not sending output to a variable. So it's either like this errReturn = objSHell.Run("somecommand.exe", 0, True) If errReturn = 0 Then ...
by rasimmer
Sun Jan 31, 2010 11:24 pm
Forum: Other Scripting Languages
Topic: HTAs stop working (repeatable)
Replies: 7
Views: 9396

HTAs stop working (repeatable)

Another option is removing the sysmenu, not show in the taskbar and providing buttons to close the HTA (self.Close). When you click the button to launch, you disabled the button for exit and the user can't exit the hta unless the do ALT+F4 (which could be disabled in the HTA if you capture the keys)...
by rasimmer
Wed Jan 27, 2010 2:03 am
Forum: VBScript
Topic: Send Email
Replies: 10
Views: 3485

Send Email

@jvierra
Don't you have to create the typical HTML tags around the <A> or does HTMLBody indicate the html document is there and you are writing inside the <body> tags?
by rasimmer
Mon Jan 25, 2010 11:16 pm
Forum: VBScript
Topic: Dreaded vbscript INPUTBOX
Replies: 11
Views: 15021

Dreaded vbscript INPUTBOX

Can I ask a stupid VB design question? In this scenario return = MsgBox("Do you want to do this?", vbOkCancel + vbQuestion, "Question") If Return = vbCancel Then MsgBox "You clicked Cancel"Else MsgBox "You clicked OK"End If You have a constant for Cancel, but InputBox requires all of this "special h...
by rasimmer
Mon Jan 25, 2010 1:53 am
Forum: VBScript
Topic: Dreaded vbscript INPUTBOX
Replies: 11
Views: 15021

Dreaded vbscript INPUTBOX

Wow...didn't expect to spark a response like that. This is typically what I would do in this situation: return = InputBox("Enter data","My Input") MsgBox "VarType: " & VarType(Return)If IsEmpty(Return) Then MsgBox "Cancel clicked"ElseIf Return = "" Then MsgBox "Empty string"Else MsgBox "String retur...
by rasimmer
Sun Jan 24, 2010 11:32 pm
Forum: VBScript
Topic: Dreaded vbscript INPUTBOX
Replies: 11
Views: 15021

Dreaded vbscript INPUTBOX

Just a quick note, you can also use IsEmpty(return) vs VarType(return) = 0
by rasimmer
Mon Jan 04, 2010 11:11 pm
Forum: VBScript
Topic: Checking for unauthorized local Windows administra
Replies: 4
Views: 1758

Checking for unauthorized local Windows administra

There were numerous issues in the script. I have run this script on my system and it worked properly. Give it a go and let us know if you have any issues: '************************************************************'Checking for unauthorized local Windows administrators Option Explicit Const ForRea...
by rasimmer
Sun Jan 03, 2010 11:26 pm
Forum: VBScript
Topic: Checking for unauthorized local Windows administra
Replies: 4
Views: 1758

Checking for unauthorized local Windows administra

It looks like there were several formatting issues in the script. The main issue is that you had a function inside of the loop, but there were several other errors too. I rewrote the script, give this a try and let me know if you have any other questions. ********************************************...