🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: C questions (intermediate?)

#7835
From: Adam Mirowski
Date: Thu, 19 Mar 1992 11:55
19 lines
1493 bytes
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.

-- 
Adam Mirowski,  mir@chorus.fr (FRANCE),  tel. +33 (1) 30-64-82-00 or 74
Chorus systemes, 6, av.Gustave Eiffel, 78182 Saint-Quentin-en-Yvelines CEDEX
Technical Details
Message-ID: <13152@chorus.fr>
Path: arc1-ca.pugleaf.net!wupost!uunet!mcsun!corton!chorus!opera.chorus.fr!mir
References: <1992Mar16.051932.18878@DMI.USherb.CA> <1992Mar17.202925.16262@csrd.uiuc.edu> <1992Mar18.132954.9633@cs.umn.edu>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!wupost!uunet!mcsun!corton!chorus!opera.chorus.fr!mir
From: mir@opera.chorus.fr (Adam Mirowski)
Newsgroups: comp.os.msdos.programmer,alt.sources
Subject: Re: C questions (intermediate?)
Message-ID: <13152@chorus.fr>
Date: 19 Mar 92 11:55:18 GMT
References: <1992Mar16.051932.18878@DMI.USherb.CA> <1992Mar17.202925.16262@csrd.uiuc.edu> <1992Mar18.132954.9633@cs.umn.edu>
Sender: mir@chorus.fr
Reply-To: mir@opera.chorus.fr (Adam Mirowski)
Organization: Chorus systemes, Saint Quentin en Yvelines, France
Lines: 19