Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.os.msdos.programmer > #958

Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call.

From "Bill Buckels" <bbuckels@mts.net>
Newsgroups comp.os.msdos.programmer
Subject Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call.
Date 2013-08-29 08:05 -0500
Organization Aioe.org NNTP Server
Message-ID <kvngud$b2g$1@speranza.aioe.org> (permalink)
References <3d695743-aadd-45f3-af21-68be161c50ce@googlegroups.com>

Show all headers | View raw


"Anil Nair" <anilcoll90@gmail.com> wrote:

> Is there any way to preserve the contents of DTA on temporary basis?

That's a good question. I have never wanted to. Generally in a C program we 
build the list first and process the list afterwards...

    if(findfirst(buffer, &wild_card, FA_NORMAL) == 0) {
      strcpy(wildfiles[wildcounter], wild_card.ff_name);
      wildcounter++;

      while(findnext(&wild_card) == 0) {
        strcpy(wildfiles[wildcounter], wild_card.ff_name);
        wildcounter++;
      }
    }

Use the following link (view in an MS-DOS text file viewer):

http://www.o3one.org/hwdocs/bios_doc/dosref22.html

Have a look and write your own version of the xcopy command using the FCB 
calls;

Function  14h   Sequential Disk File Read
Function  15h   Sequential Disk Write

Bill







Back to comp.os.msdos.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. Anil Nair <anilcoll90@gmail.com> - 2013-08-29 05:27 -0700
  Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. "R.Wieser" <address@not.available> - 2013-08-29 15:03 +0200
    Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. kerravon@w3.to - 2013-08-29 08:15 -0700
      Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. kerravon@w3.to - 2013-08-29 08:21 -0700
        Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. "Bill Buckels" <bbuckels@mts.net> - 2013-08-29 11:03 -0500
          Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. kerravon@w3.to - 2013-08-30 03:06 -0700
            Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. "Bill Buckels" <bbuckels@mts.net> - 2013-08-30 09:30 -0500
              Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. kerravon@w3.to - 2013-08-30 08:07 -0700
                Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. "Bill Buckels" <bbuckels@mts.net> - 2013-08-30 10:48 -0500
                Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. "Rod Pemberton" <dont_use_email@nohavenotit.com> - 2013-08-31 01:32 -0400
                Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. kerravon@w3.to - 2013-08-31 10:36 -0700
        Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. "Bill Buckels" <bbuckels@mts.net> - 2013-08-29 11:15 -0500
          Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. kerravon@w3.to - 2013-08-30 08:03 -0700
            Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. kerravon@w3.to - 2013-08-30 15:01 -0700
            Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. "R.Wieser" <address@not.available> - 2013-08-31 00:28 +0200
  Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. "Bill Buckels" <bbuckels@mts.net> - 2013-08-29 08:05 -0500
    Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. "Bill Buckels" <bbuckels@mts.net> - 2013-08-29 08:33 -0500
      Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. Anil Nair <anilcoll90@gmail.com> - 2013-08-29 06:57 -0700
        Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. "Bill Buckels" <bbuckels@mts.net> - 2013-08-29 10:04 -0500
    Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. kerravon@w3.to - 2013-08-29 07:22 -0700
      Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. "Bill Buckels" <bbuckels@mts.net> - 2013-08-29 09:55 -0500
      Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. "Bill Buckels" <bbuckels@mts.net> - 2013-08-29 11:35 -0500
  Re: Problem with Int 21/AH=4E,4F(FindFirst and FindNext) function call. Anil Nair <anilcoll90@gmail.com> - 2013-09-10 23:01 -0700

csiph-web