Computing.Net > Forums > Programming > Run vb.net application in *.bat

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Run vb.net application in *.bat

Reply to Message Icon

Name: carol kys
Date: February 28, 2007 at 19:07:42 Pacific
OS: win xp
CPU/Ram: 512mb
Product: HP
Comment:

Hi All,

I'm a newbie in batch programming. I have a situation needs to run vb application within the batch. what is the command for running this? Should i create an .exe to run this?
Where my vb application consist of a form and user input.

Urgently looking for help. Thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: IVO
Date: March 1, 2007 at 01:04:28 Pacific
Reply:

I'm not a VB.net expert, but you have to run your application inside the batch the same way you would start it from the command prompt.

Be aware that a batch executes the apps sequentially, i.e. it doesn't go on untill the activated program ends, so to run in parallel mode you have to use the Start command

Start "" Pathname_of_Application


0

Response Number 2
Name: carol kys
Date: March 8, 2007 at 00:30:27 Pacific
Reply:

Hi Ivo,

My batch program was listed below,

START "C:\Documents and Settings\Encrytion.exe"

However the form doesn't show when i run the *.bat. The system only show the command prompt.

Any commands that i miss out? Thanks for the answering my question.


0

Response Number 3
Name: kazendar
Date: March 9, 2007 at 04:08:49 Pacific
Reply:

Your program might needs input-value !
so, you have to add as:

start ......... %1 %2

%1 means variable 1, %2 for var 2 and so on


Mr. Adel


0

Response Number 4
Name: IVO
Date: March 9, 2007 at 06:48:01 Pacific
Reply:

Hi carol kys,

START "" "C:\Documents and Settings\Encrytion.exe"

You missed the "" after the Start and before the "C:\... so the program path is interpreted as the window's title. That is unknown to the millions but try and you see your form to blow up, almost I hope.


0

Response Number 5
Name: carol kys
Date: March 11, 2007 at 19:18:58 Pacific
Reply:

Hi IVO,

Yes. U r right, it works perfectly. Thanks alots for ur help.

Hi Mr Ade1,

Thanks for ur info given as well.

Nice days. :)


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: Run vb.net application in *.bat

VB .net application in windows98\ www.computing.net/answers/programming/vb-net-application-in-windows98/7312.html

VB.NET Program Install Wizard www.computing.net/answers/programming/vbnet-program-install-wizard/14436.html

Deploying Vb.net application in cli www.computing.net/answers/programming/deploying-vbnet-application-in-cli/12597.html