how to feed keystrokes to a dos program?

View: New views
4 Messages — Rating Filter:   Alert me  

how to feed keystrokes to a dos program?

by pcdos2k :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

i need to feed "enter, y, y, y, y, y, enter" into fastvid.exe.
fastvid is a vesa optimizer but using its commandline options does
not use the entire video card memory even if explicitly indicated.

i would prefer an alternative solution that does not use any tsr or
tempfiles. my current batfile:

::::: vidfast.bat :::::
echo. > fastvid.yyy
echo y >> fastvid.yyy
echo y >> fastvid.yyy
echo y >> fastvid.yyy
echo y >> fastvid.yyy
echo y >> fastvid.yyy
echo. >> fastvid.yyy
fastvid.exe < fastvid.yyy >> nul
del fastvid.yyy >> nul
::::: end :::::

this is for a bootcd that assumes no writeable dos partition.

thanks.



Re: how to feed keystrokes to a dos program?

by foxidrive-7 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, 15 Nov 2008 15:11:10 -0000, "pcdos2k" <pcdos2k@...> wrote:

>i need to feed "enter, y, y, y, y, y, enter" into fastvid.exe.
>fastvid is a vesa optimizer but using its commandline options does
>not use the entire video card memory even if explicitly indicated.
>
>i would prefer an alternative solution that does not use any tsr or
>tempfiles. my current batfile:
>
>::::: vidfast.bat :::::
>echo. > fastvid.yyy
>echo y >> fastvid.yyy
>echo y >> fastvid.yyy
>echo y >> fastvid.yyy
>echo y >> fastvid.yyy
>echo y >> fastvid.yyy
>echo. >> fastvid.yyy
>fastvid.exe < fastvid.yyy >> nul
>del fastvid.yyy >> nul
>::::: end :::::
>
>this is for a bootcd that assumes no writeable dos partition.
>
>thanks.

A keystuffer TSR is probably the best way.


Re: how to feed keystrokes to a dos program?

by Michael Burek :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Do you just mean that you can't run the echo y >> fastvid.yyy
statement from the CD because it can't save to disk?

Could you just burn the final fastvid.yyy file to the CD?
I don't think the line
fastvid.exe < fastvid.yyy >> nul
would need to write anything to disk.

Or does this boot CD create a ram disk?  That is writable.

--------------------------------------

On Sat, Nov 15, 2008 at 9:11 AM, pcdos2k <pcdos2k@...> wrote:

>   i need to feed "enter, y, y, y, y, y, enter" into fastvid.exe.
> fastvid is a vesa optimizer but using its commandline options does
> not use the entire video card memory even if explicitly indicated.
>
> i would prefer an alternative solution that does not use any tsr or
> tempfiles. my current batfile:
>
> ::::: vidfast.bat :::::
> echo. > fastvid.yyy
> echo y >> fastvid.yyy
> echo y >> fastvid.yyy
> echo y >> fastvid.yyy
> echo y >> fastvid.yyy
> echo y >> fastvid.yyy
> echo. >> fastvid.yyy
> fastvid.exe < fastvid.yyy >> nul
> del fastvid.yyy >> nul
> ::::: end :::::
>
> this is for a bootcd that assumes no writeable dos partition.
>
> thanks.
>


[Non-text portions of this message have been removed]


Re: how to feed keystrokes to a dos program?

by pcdos2k :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

--- On Sat, 11/15/08, Michael Burek <mike@...> wrote:
>
> I don't think the line
> fastvid.exe < fastvid.yyy >> nul
> would need to write anything to disk.

" >> nul" will suppress any messages.
 
> Or does this boot CD create a ram disk?  That is writable.

i ended up writing the tempfile to %temp%, which is a ramdisk. thanks for the reminder.