473,398 Members | 2,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

acces denied at running remove()

Hello,

I just want to delete a file from the hard disk, therefore I use the remove() standard function.

Sometimes I get an error code -1 (access denied), when I want to do it. Even if I try to delete the same file, then copy it back (just for test reasons), it works, and then suddenly error -1.

Can somebody tell me what to do? I have already tried to call fflush(), but it doesn´t help.

mitulatbati
Mar 16 '10 #1
1 1287
weaknessforcats
9,208 Expert Mod 8TB
You may need to post your code in tyhe area where this is occurring. An acess denied is often the error associated with using a bad pointer.
Mar 16 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: buran | last post by:
Dear ASP.NET Programmers, I encountered the following problem when running my project: Configuration Error Description: An error occurred during the processing of a configuration file...
0
by: sven_hub | last post by:
Hello everybody, I read interstings posts by Andy and Willy, but it didn't help regarding my configuration. I try to make a WMI query on a "distant" server, that is actually part of the same...
9
by: | last post by:
Hi All, I have allready tried to ask a similar question , but got no answer until now. In the meantime, I found, that I cannot understand some thread-settings for the Main() function . If I use...
1
by: Dakkar | last post by:
I'm getting this error when i execute my program ERROR Acces denied for user:'root@DAKKAR123' and when i write the line like this i dont take any error MyConn = new...
3
by: Jensen Bredal | last post by:
Hello, I'm doing localhost developpement on a win2k3 server . When i lunch the default page i get the following. How do i resolve it? many thanks in advance Server Error in '/MultiTest'...
3
by: frederik | last post by:
Hi The website have to show subdirectories on a network drive. I use the following code: string directories; directories=Directory.GetDirectories(_Path); ....
3
by: Shailesh Humbad | last post by:
I figured out what was causing the "Access is Denied" error when calling functions from referenced DLLs in my service. I've tried to be very detailed, so bear with me. It turns out that...
0
by: kamig | last post by:
Hi! Scenario: Consuming my webService in a windows application give denied acces! Explanation: I have to say a moveTo fn. which move one file/dir from one drive to another, <authorization>
3
by: benoit | last post by:
Hi, on a fileserver I have several images en xml-files that I need to access. In web.config I have this section <appSettings> <add Key="Remote" value="//000.000.000.000" /> </appSettings> ...
0
by: bik | last post by:
Hi guys, it'll be great if some can help me, I have a problem geting directories Url in vista scaning the C:\\ disc, it says that the acces is denied, i had disabled the UAC, and have administrator...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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,...
0
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...

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.