310300 VB GUI to replace DOS Menu

En curso Publicado Apr 7, 2009 Pagado a la entrega
En curso Pagado a la entrega

This small project is to create a VB front end that should replace a simple DOS menu.

Currently the DOS menu promtps the user for 5 arguments (name_string, scenario, user, pass, site) and then allows the user to select one of the 30 menu items.

Depending on the menu item choose, the Batch file just call a VBscript.

I don't need integration with that script. Just the VB front end that will pass the command depending on what the user has clicked.

I also don't need a fully populated VB GUI, as long as I can then edit the source, I will add more options myself.

Easy but no time.

**********

User Input

**********

set /P target_san=Enter Target Name]. (%target_name%):

If '%target_san%'=='' goto SYNTAX

set /P scenario=Enter Scenario [A, B, C] (%scenario%):

If '%scenario%'=='' goto SYNTAX

set /P username=Enter Username (%username%):

If '%username%'=='' goto SYNTAX

set /P password=Enter Password (%password%):

If '%password%'=='' goto SYNTAX

set /P trigram=Enter Site Trigram(%trigram%):

If '%trigram%'=='' goto SYNTAX

......

Target name should be radio buttons with 3 names hardcoded

scenario is a drop down.

rest is InpuBox.

echo. General settings

echo. ---------------------

echo. 1. Action 1

echo. 2. Action 2

etc....

:ENTER

set /p choice=

if '%choice%'=='1' set label=action_01

if '%choice%'=='2' set label=action_02

etc...

Each choice is unique (there are 40 of them) so a radio box is enough.

No multiple tick box are required and drop down list too prone to errors.

Then a big Green button that says go :-)

REM ************************************

REM Command sent to the VBscript

REM ************************************

cscript ":\Path\[url removed, login to view]" %target_name% %LABEL% %scenario% %username% %password% %trigram%

So the VB GUI is just used to create the command line above and display what's going on in a DOS prompt embedded in the interface. The VBscript issues some Command Prompt so we need to see them.

Odd Jobs PHP Visual Basic

Nº del proyecto: #2056097

Sobre el proyecto

Proyecto remoto Activo Jul 11, 2012