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

  futurist 23:04 30 Nov 2008

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 2008

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 2008

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 2008

any more ideas?

  DieSse 19:36 01 Dec 2008

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

echo off
echo ---------------------
echo OK?
echo ---------------------

  futurist 22:39 01 Dec 2008

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 2008

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 2008

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 2008

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.

Elsewhere on IDG sites

AMD Ryzen news - release date, UK price, features and specifications

The 12 best apps for drawing and painting on your iPad

Mac power user tips and hidden tricks

Comment faire des captures d’écran sous Windows 10 ?