Changing file permission in windows

S

santosh

How to change file permissions using C language in windows?
i.e. if the file has read only permission , how to take it out.
 
V

Vladimir Oka

santosh opined:
How to change file permissions using C language in windows?
i.e. if the file has read only permission , how to take it out.

You can't do it using only standard C features. Best ask in one of the
Windows groups.

--
"Calling EMACS an editor is like calling the Earth a hunk of dirt."

-- Chris DiBona on Dirt (Open Sources, 1999 O'Reilly and Associates)

<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>
 
S

santosh

You can't do it using only standard C features. Best ask in one of the
Windows groups.

I want to delete the file using C language which has read only flag
set. (In Windows)
Is is possible?
 
R

Rafael Almeida

I want to delete the file using C language which has read only flag
set. (In Windows)
Is is possible?
Probably not, otherwise window's permission system would be quite
useless, right? You should check some windows newsgroup though. As Oka
already told you to.
 
S

SM Ryan

# How to change file permissions using C language in windows?
# i.e. if the file has read only permission , how to take it out.

If there's a command line way to do it and your system supports
system(...), you can construct the command line and execute it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,043
Latest member
CannalabsCBDReview

Latest Threads

Top