in reply to Re^2: How Do I Get Batch Input to Work in DOS?
in thread How Do I Get Batch Input to Work in DOS?
When you run your script, do you get those lines about where the program thinks it is and if it's incorrect to enter the full path or return? Have you tried adding a print after you assign to $prgmdrv to see what it's doing at that point? (Standard 'print statements everywhere!' advice, but still...)
I wonder if it might make more sense to modify the original script to optionally take an input file of commands instead of trying to pipe the commands in externally?