Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to change file permission in Matlab in Windows?

300 views
Skip to first unread message

Kevin

unread,
Dec 8, 2010, 11:47:21 AM12/8/10
to
What DOS command should I use? I am running Matlab 2010b on Windows 7.

Thanks.

Michael Stachowsky

unread,
Dec 8, 2010, 12:06:07 PM12/8/10
to
I'm not 100% sure what you're asking here, but if I understand it correctly, this is the problem: you are in a folder with some m-files, and you want to edit those files in matlab, but it says something like "the files are read only". Is that right?

If so, just go to where the folder is held (say it's a folder on your desktop, then go to the desktop), right click and select properties. In the window that pops up should be a "security" tab, or something like this. Just make sure every user has the the authority to change the folder. To do this, click on your user name, then click "edit", and then enable the access you want in the panel below.

if that doesn't help, let me know.

MIKE

"Kevin" <kh...@fake.com> wrote in message <idocqp$c1r$1...@fred.mathworks.com>...

Kevin

unread,
Dec 8, 2010, 12:22:04 PM12/8/10
to
Hi Michael,

Sorry that I was not very clear in my first post.

I would like to programatically change a file to read-only in Matlab on Windows 7.

Kevin

"Michael Stachowsky" <mstac...@gmail.com> wrote in message <idodtv$nn8$1...@fred.mathworks.com>...

Michael Stachowsky

unread,
Dec 8, 2010, 12:32:05 PM12/8/10
to
Hm...sorry, I've never come across that before. But a quick google search yielded this:

http://www.cyberciti.biz/tips/windows-change-access-permissions-from-the-command-line.html

Maybe it will be helpful?

Sorry I can't be of more help,

MIKE

"Kevin" <kh...@fake.com> wrote in message <idocqp$c1r$1...@fred.mathworks.com>...

Steven_Lord

unread,
Dec 8, 2010, 1:13:16 PM12/8/10
to

"Kevin" <kh...@fake.com> wrote in message

news:idocqp$c1r$1...@fred.mathworks.com...


> What DOS command should I use? I am running Matlab 2010b on Windows 7.

Why use DOS?

http://www.mathworks.com/help/techdoc/ref/fileattrib.html

--
Steve Lord
sl...@mathworks.com
comp.soft-sys.matlab (CSSM) FAQ: http://matlab.wikia.com/wiki/FAQ
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Kevin

unread,
Dec 8, 2010, 2:16:05 PM12/8/10
to
Thanks Steve,

This is exactly what I want. Still learn some new Matlab commands after 10 years.

Kevin

"Steven_Lord" <sl...@mathworks.com> wrote in message <idohrs$dbv$1...@fred.mathworks.com>...

Jan Simon

unread,
Dec 8, 2010, 5:29:05 PM12/8/10
to
Dear Kevin,

> I would like to programatically change a file to read-only in Matlab on Windows 7.

fileattrib(FileName, '-w');

Jan

0 new messages