can you run vb commands via dos (batch file)?

  futurist 23:04 30 Nov 08
Locked

hi. i was wanting to use the MsgBox "your text here" as a confirm box after a batch file has run. is there a way of running a vb command via dos. (i cannot use netsend on vista as an alternative to MsgBox)

  DieSse 23:10 30 Nov 08

To simply display a message in DOS you can use the ECHO command.

Is what you want to do more complex than that?

AFAIK you can't just use a VB command - you'd have to make a mini VB executable program, which you can then CALL in DOS.

  futurist 00:17 01 Dec 08

thanks for your speedy response. i need a pop-up box style message with an 'ok' button. if this is possible with 'echo', then could you please give me the syntax

  futurist 18:10 01 Dec 08

any more ideas?

  DieSse 19:36 01 Dec 08

This fragment will do a "box" with "press any key to continue" message


echo off
cls
echo ---------------------
echo OK?
echo ---------------------
pause

  futurist 22:39 01 Dec 08

thanks for your reply, but i was looking for something a little 'neater', but this will be a useful backup plan

  futurist 22:55 01 Dec 08

hi, thanks all for your help. i have found a solution here click here

if anyone does know a way to run vb from dos, i would be interested though

thanks again

  woodchip 23:31 01 Dec 08

Will it work if you start computer using a Win98se Boot disc as it will go to Command Prompt C:\ in DOS.

Will VB load onto the Floppy? to run it

  DieSse 23:59 01 Dec 08

Execute VB script from a DOS box -

click here


Sorry but googling is the best I can do here - batch files I used to do (like 25 years ago!) - VB I've never done.

This thread is now locked and can not be replied to.

Intel Coffee Lake 8th-gen Core processors release date rumours

1995-2015: How technology has changed the world in 20 years

Apple MacBook Pro with Touch Bar review

Best iPhone games 2017 | Best iPad games 2017: 162 fantastic iOS games that you need to play right…