windowsuser-interfacevbscriptsshautomation

is it possible to build some gui using vbs? (ssh automation)


I'm trying to make automation using vbs and I'm wondering if it possible to build some simple gui with file chooser (or couple of them)? Googling didn't help me here.

I need this not to hardcode some input parameters of the script.

The original problem is ssh commands automation. I'm using XShell (ssh client) vbs scripts for this now, but I have to hardcode parameters everytime I use it. It would be better if I can just type ip/choose file, instaed of editing script.
Maybe it worth to consider any other ways of automation and if anybody can suggest any tools to automate sending ssh commands to remote server it would be great!

Thank you all in advance!


Solution

  • For people who know HTML it's very viable to write GUIs controled by VBScript (or any other ActiveScript language: Perl, Python, Ruby, JScript, ...). The technique is called HTML Application (HTA) and there is even a wizard/designer (of mediocre quality).

    While command line VBScripts are hosted by C/WScript.exe, HTAs are browser (i.e. IE) based. That is not aproblem if you can do the SSH work via shelling out or COM objects. But Mr. Nothing's SSH client seems to be a console style application that hosts/uses VBScript code internally; in this case HTA is no option. OTOH: If - as "I need this not to hardcode some input parameters of the script" seems to indicate - the real work is done by starting VBScript scripts, then selecting/constructing parameters for such scripts in a HTA GUI should be easy (for HTML savvy people).