• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 162
  • Last Modified:

data from DOS to vb

hello everybody,

i need a small information.anybody can help me out.i have run a shell command and running a exe file in DOS .could u plz tell me the code to get data from DOS environment to VB environment.its very important and urgent as the project is in the middle.
0
p_ramkishore
Asked:
p_ramkishore
2 Solutions
 
DhaestCommented:
0
 
bhagyeshtCommented:
Hi Ram kishore,
are u running ur exe or a standard exe? if your exe then u can use executeprocess or shell and redirect the output to a text file and read the text file
0
 
twalgraveCommented:
Dhaest's comment is a great one.
If your DOS program is a full-fledged program like FoxPro2 and you are looking to do some sort of screen-scraping, FoxPro2 won't redirect it's output to a flat-file, so you're almost out of luck there.  However, you can always issue a sendkeys to copy and paste the screen content.

Alt+Space+E+K sets up the window for marking

Then you would send several (40) Right-Arrows and several Down-Arrow keystrokes to select the data

Then you would send an Enter key to copy the information to the clipboard.

Then you can use use the Clipboard object to get the data.


0
 
FaithRavenCommented:
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:
Split points to tgraffham & Dhaest
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

FaithRaven
EE Cleanup Volunteer
0
 
FaithRavenCommented:
Sorry, wrong paste, this is the correct recommand :

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:
Split points to twalgrave & Dhaest
Please leave any comments here within the next seven days.

PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

FaithRaven
EE Cleanup Volunteer
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now