473,471 Members | 1,728 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

delete files using CFile ?

Hi Team :

I do no know the procedure to delete file using CFile ?? or any other way
(command or procedure) to reach this action.

Thanks in advanced
Nov 17 '05 #1
3 3855
Another way that I have tried to do the same was :

system("erase c:/user.def"); with not result

After execute the command line, the file is still in the same place !!

"German" wrote:
Hi Team :

I do no know the procedure to delete file using CFile ?? or any other way
(command or procedure) to reach this action.

Thanks in advanced

Nov 17 '05 #2
"German" <Ge****@discussions.microsoft.com> wrote in message
news:F3**********************************@microsof t.com...
I do no know the procedure to delete file using CFile ?? or any other way
(command or procedure) to reach this action.


CFile::Remove(), DeleteFile(), SHFileOperation(), whatever you like.

Regards,
Will
Nov 17 '05 #3
It works fine, and thank you very much William,
German

"William DePalo [MVP VC++]" wrote:
"German" <Ge****@discussions.microsoft.com> wrote in message
news:F3**********************************@microsof t.com...
I do no know the procedure to delete file using CFile ?? or any other way
(command or procedure) to reach this action.


CFile::Remove(), DeleteFile(), SHFileOperation(), whatever you like.

Regards,
Will

Nov 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Jobs | last post by:
Hello All, I want to delete all files in a directory. I am making a backup copy of all files in the directories say c:\abc by reading and writing to a file. After making a backup copy I want to...
5
by: Raj | last post by:
Hi all, Can anyone help me with a script which would delete files or move them to a different folder at some scheduled time..! Please.....!!! Thanks in advance...
6
by: | last post by:
I am rewriting a C++ application in C#. This file has a combination of Text and Binary data. I used CFile before to read the text. If I hit a certain string that denotes the following data is...
3
by: Scott_Tuttle | last post by:
I'm trying to delete files with strange characters in the names but csharp doesnt seem to be able to see them at all. Solution??
8
by: milkyway | last post by:
Hello, I have created many sample web sites for testing and now I would like to do some cleanup. When doing searches, it seemed that there were a good number of approaches to removing a web...
2
by: createdbyx | last post by:
I am trying to make a file sync utillity to sync files between my laptop and my desktop pc. On my desktop machine (xp pro sp2) I have shared my "Visual Studio Projects" folder using windows simple...
10
by: =?Utf-8?B?TmFuZCBLaXNob3JlIEd1cHRh?= | last post by:
I have a binary file created using C++ that contains an object of the structure: struct student { int roll_no; char name; char qualification; };
2
by: niarj | last post by:
hi all, i have bookmark a pdf from a text file . i am getting error while ...createing a child bookmark . i like to make bookmark like ... --->> niraj jha ...
3
Atli
by: Atli | last post by:
HI everybody. In an effort to teach myself the basics of Python, I set out to create a script that would read a PHP file, remove any comments and then save it to another location. I've got it all...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.