[comp.windows.ms] ile indirection

mikew@proton.LCS.MIT.EDU (Michael B. Williams) (09/01/90)

In article <1990Aug31.184944.22989@athena.mit.edu>, acook@athena.mit.edu
(Andrew R Cook) writes:
|> Has anyone tried to run a dos program under windows and supply any input for
|> it by using indirection ?  Ie:
|> 	progm < cmds
|> where cmds is a file that contains the resonses to inputs asked for
by progm ?
|> I have tried doing it by using the run command, and by putting stuff
in a PIF
|> file, but neither technique seems to work.  Any Windows hackers know
a way to
|> do this?  Is it even possible ?
|> 
|> Thanks -   Andy Cook
|> 

Two suggestions off the top of my head:

1) Try executing the statement via COMMAND.COM, that is, select
File|Run, then type
	COMMAND.COM /C progm < cmds
(It would be nice if this works.)
2) Creat a batch file with the line
	progm < cmds
in it, and File|Run WHATEVER.BAT.  (This should surely work.)

______________________________________________________________________
Michael B. Williams		      |	       /|  /|   )  /|  /   
Room 527			      |	      / | / |--<| / | /   
Laboratory for Computer Science	      |	     /  |/  |___)/  |/
Massachusetts Institute of Technology |	Internet: mikew@athena.mit.edu
545 Technology Square		      |	CompuServe: 73667,3264
Cambridge, MA 02139		      |	AT&T: (617) 253-6015