Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

VB Redirection

Status
Not open for further replies.

keenanbr

Programmer
Oct 3, 2001
469
IE
is it possible the redirect standard input in VB. I want to take the input from a file instead of the keyboard
 
I dont know what you mean by redirect standard input. But if yoru asking to read something in from a file instead of keyboard, sure you can. What are you trying to do? Sorry if I totally misread this post.
 
the program expects input from the keyboard. I want it to take the input from a file instead. on a unix system i would simply run a program like this; program_name < file_name. How can i do this in VB
 
You can use the fso (file system object) to read in information from a file and than use that as the input. I am not really clear on what you need to do with the information.

you need to include microsoft scripting runtime as a reference scrrun.dll i believe it is.

is this what you want? let me know if you need to know more about the fso and its function. If you can be a little more clear on what you need to do i might be able to be more helpful.
 
Hi keenanbr,

I'm fairly sure the answer to your question is no, but if you find a way I'd love to hear of it - I could certainly make use of it.

Enjoy,
Tony
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top