How to Read .ini file thru Batch File

S

San

I am very new in VB.Net.
I want to send email thru batch file. The batch file contains only
.exe file name and .ini file with space ( .exe .ini). When i double
click the batch file it will call .exe file and .ini file.

.INI looks like this

[FROM]: (e-mail address removed)
[TO]: (e-mail address removed)
[Subject]: ffff#subject.com
[Body]:hhhhhhhhhhhhhhhhhhhh

Body is multiline

Can u plse tell me how to read each line seperatly and store in
different variable like "strFrom" contains only FROM address, strTo
contains only "TO address ......??
 
H

Herfried K. Wagner [MVP]

* (e-mail address removed)-spam.invalid (San) scripsit:
I want to send email thru batch file. The batch file contains only
.exe file name and .ini file with space ( .exe .ini). When i double
click the batch file it will call .exe file and .ini file.

.INI looks like this

[FROM]: (e-mail address removed)
[TO]: (e-mail address removed)
[Subject]: ffff#subject.com
[Body]:hhhhhhhhhhhhhhhhhhhh

Body is multiline

Can u plse tell me how to read each line seperatly and store in
different variable like "strFrom" contains only FROM address, strTo
contains only "TO address ......??

<http://www.mentalis.org/soft/class.qpx?id=6>
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top