Search found 182 matches
- Thu Feb 11, 2010 12:54 am
- Forum: VBScript
- Topic: Automating Remote Assistance
- Replies: 3
- Views: 8740
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...
- Thu Feb 04, 2010 6:49 am
- Forum: VBScript
- Topic: objshell.run using variables that have spaces
- Replies: 7
- Views: 6700
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...
- Thu Feb 04, 2010 6:37 am
- Forum: VBScript
- Topic: objshell.run using variables that have spaces
- Replies: 7
- Views: 6700
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...
- Sun Jan 31, 2010 10:24 pm
- Forum: Other Scripting Languages
- Topic: HTAs stop working (repeatable)
- Replies: 7
- Views: 12402
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)...
- Wed Jan 27, 2010 1:03 am
- Forum: VBScript
- Topic: Send Email
- Replies: 10
- Views: 5596
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?
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?
- Mon Jan 25, 2010 10:16 pm
- Forum: VBScript
- Topic: Dreaded vbscript INPUTBOX
- Replies: 11
- Views: 17642
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 ...
- Mon Jan 25, 2010 12:53 am
- Forum: VBScript
- Topic: Dreaded vbscript INPUTBOX
- Replies: 11
- Views: 17642
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 = "&quo...
- Sun Jan 24, 2010 10:32 pm
- Forum: VBScript
- Topic: Dreaded vbscript INPUTBOX
- Replies: 11
- Views: 17642
Dreaded vbscript INPUTBOX
Just a quick note, you can also use IsEmpty(return) vs VarType(return) = 0
- Mon Jan 04, 2010 10:11 pm
- Forum: VBScript
- Topic: Checking for unauthorized local Windows administra
- Replies: 4
- Views: 2683
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...
- Sun Jan 03, 2010 10:26 pm
- Forum: VBScript
- Topic: Checking for unauthorized local Windows administra
- Replies: 4
- Views: 2683
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. ********************************************...