Re: Deleting a file
On Mon, 28 Apr 1997 19:09:12 -0400 Architek <architek at GEOCITIES.COM>
writes:
>
>Hi, I've got a problem:
>I need to delete a file, but don't want to use the system() function,
>cause it has to be "transparent" to the user.
>
> ************************************
> This message sent by Daniel Berstein
> ************************************
> email: architek at geocities.com
If you are doing it from text mode then you can make your active
page, 1 or 2 or something other than your display page which
I believe is 0 by default. ONLY problem there is that I believe
your error message will pop up on page 0. NOT sure.
Check it out. You should have no problem using this with DOS
commands such as copy.
I am under ver 6.22 of DOS. My del doesn't return anything.
unless the file isn't found.
You should use:
file = "filename.tmp"
system("del "& file, 2)
OR
system("del filename.tmp", 2)
Since delete doesn't display anything you
can do it under Text or Graphics mode.
Hope this helps
--Lucius Lamar Hilley III
-- E-mail at luciuslhilleyiii at juno.com
-- I support transferring of files less than 60K.
-- I can Decode both UU and Base64 format.
|
Not Categorized, Please Help
|
|