ananthu
asked on
Return A Value Thru EXE
All,
Now the req is like this... I have to create an exe in VB, which when executed thru DOS (a batch file) the result of the VB must get stored in DOS variable....
EX: if the exe returns say 20030316
if I have said %1 = c:\Proj1.exe
then echo %1 should return 20030316
Please Help
Thanks
Now the req is like this... I have to create an exe in VB, which when executed thru DOS (a batch file) the result of the VB must get stored in DOS variable....
EX: if the exe returns say 20030316
if I have said %1 = c:\Proj1.exe
then echo %1 should return 20030316
Please Help
Thanks
I've not tried it, but I don't think you can do this. VB programs must operate in the Windows environment. DOS doesn't know how to locate and link routines in DLLs, and VB programs rely heavily on DLLs.
First of all you cannot run a VB application in DOS. Try VC++ by statically linking MFC dlls. Then you can execute it in Dos env also. VB as far as I know, can't be done. But anyways I'll give it a try.
Good Luck.
Good Luck.
ASKER
I am not running it in a DOS environment. I am running it in Windowns Environment but thru DOS....
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Hi ananthu,
This old question (QID 20552935) needs to be finalized -- accept an answer, split points, or get a refund. Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
This old question (QID 20552935) needs to be finalized -- accept an answer, split points, or get a refund. Please see http://www.cityofangels.com/Experts/Closing.htm for information and options.
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
-->Accept Chimo's comments as answer
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
GPrentice00
EE Cleanup Volunteer
I will leave a recommendation in the Cleanup topic area that this question is:
-->Accept Chimo's comments as answer
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!
GPrentice00
EE Cleanup Volunteer