🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7837

Re: C questions (intermediate?)

#7837
From: Torbj|rn Lindgren
Date: Mon, 23 Mar 1992 10:58
19 lines
1563 bytes
In article <13152@chorus.fr> mir@opera.chorus.fr (Adam Mirowski) writes:
>In article <1992Mar18.132954.9633@cs.umn.edu>, krantz@cs.umn.edu (Don Krantz) writes:
>%% In <1992Mar17.202925.16262@csrd.uiuc.edu> weather@sp90.csrd.uiuc.edu (Stephen A. Weatherford) writes:
>%% >>What's is the fastest way to delete all file in current dir?
>%% >If you're using Turbo C, you can look at the commands findfirst(),
>%% >findnext() (which let you get the files in the directory) and unlink()
>%% >(which deletes a file).
>%% If your library has a "system()" function, try this:
>%% 
>%% 	system( "del *.*" );
>
>This is wrong. Use something like  system ("echo y | del *.*"),
>but this won't be portable across DOS versions. French DOS
>needs o(ui) or n(on). If you don't provide the correct letter,
>the machine will hang. A ^C or ^Break usually permits to terminate
>the system() call.

The fastest way to delete multiple files under DOS is by using FCB
Delete, it MUCH faster than ANY other method!
Technical Details
Message-ID: <1992Mar23.105847.25343@etek.chalmers.se>
Path: arc1-ca.pugleaf.net!wupost!cs.utexas.edu!swrinde!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!chalmers.se!etek.chalmers.se!tl
References: <1992Mar17.202925.16262@csrd.uiuc.edu> <1992Mar18.132954.9633@cs.umn.edu> <13152@chorus.fr>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!wupost!cs.utexas.edu!swrinde!gatech!bloom-beacon!eru.mt.luth.se!lunic!sunic!chalmers.se!etek.chalmers.se!tl
From: tl@etek.chalmers.se (Torbj|rn Lindgren)
Newsgroups: comp.os.msdos.programmer,alt.sources
Subject: Re: C questions (intermediate?)
Message-ID: <1992Mar23.105847.25343@etek.chalmers.se>
Date: 23 Mar 92 10:58:47 GMT
References: <1992Mar17.202925.16262@csrd.uiuc.edu> <1992Mar18.132954.9633@cs.umn.edu> <13152@chorus.fr>
Sender: Torbj|rn Lindgren
Organization: Chalmers University of Technology, Gothenburg, Sweden
Lines: 19