Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uwm.edu!cs.utexas.edu!asuvax!ncar!midway!gsbsun!valley From: valley@gsbsun.uchicago.edu (Doug Dougherty) Newsgroups: comp.os.msdos.programmer Subject: Re: File truncation in MSDOS? Message-ID: <1991May21.193921.22725@midway.uchicago.edu> Date: 21 May 91 19:39:21 GMT References: <1991May21.142518.5467@hq.demos.su> Sender: news@midway.uchicago.edu (NewsMistress) Organization: University of Chicago Lines: 27 sir@hq.demos.su (Sergey Ryzhkov) writes: >How I can truncate the tail of the file i.e. delete the part of >the file from the current position to the eof. Are there any >system service in DOS to do this? lseek to the spot, then write 0 bytes. Works every time... >How I can to insert the keyboard key combination Ctrl+Shist? >I have no problem with such combinations as Ctrl+PgUp or Shift+Ins. >But Ctrl+Ins do not generate any input from function getbios () or >any other. What can I do? You can't. Assuming that what you want to do is pop up a TSR via programmatic control, you have to wire yourself into the TSR's INT 9 handler, and trick it into thinking the key combination was struck (even though it wasn't). I have done this with several TSR's, but there is no general way to do it (i.e., no way which involes just pushing the key combination) > Sergey Ryzhkow, Moscow, Russia, USSR An obvious fake. The USSR no longer exists. (I know they changed their name recently; don't know off hand what the new name is...) -- (Another fine mess brought to you by valley@gsbsun.uchicago.edu)