Lazarus
Home
Help
TinyPortal
Search
Login
Register
Lazarus
»
Forum
»
Programming
»
General
»
Change the permissions of a folder
Free Pascal
Website
Downloads
Wiki
Documentation
Bugtracker
Mailing List
Lazarus
Website
Downloads (Laz+FPC)
Packages (OPM)
FAQ
Wiki
Documentation (RTL/FCL/LCL)
Bugtracker
CCR Bugs
GIT
Mailing List
Other languages
Foundation
Website
Useful Wiki Links
Project Roadmap
Getting the Source
Screenshots
How to use the forum
Forum Rules
About donations (wiki)
Bookstore
Computer Math and Games in Pascal
(preview)
Lazarus Handbook
Search
Advanced search
Recent
Lazarus Main and Gnome/Wa...
by
dbannon
[
Today
at 04:42:05 am]
[SOLVED] TPrintDialog Pro...
by
spuds
[
Today
at 01:30:20 am]
TPairsplitter could be be...
by
jamie
[
Today
at 12:36:34 am]
FloatToStr issue
by
J-G
[
Today
at 12:06:38 am]
Array of structure -> str...
by
jamie
[June 05, 2026, 11:52:24 pm]
Curved text in Lazreport
by
paweld
[June 05, 2026, 09:37:27 pm]
Release ray4laz 6.0
by
Fred vS
[June 05, 2026, 09:06:27 pm]
Very rough version of a s...
by
Hansvb
[June 05, 2026, 09:02:17 pm]
Pascal for AI Agent CLI T...
by
Martin_fr
[June 05, 2026, 08:01:11 pm]
Read/Parse PDB file to ge...
by
tooknox
[June 05, 2026, 07:36:13 pm]
storing assets for releas...
by
flowCRANE
[June 05, 2026, 07:30:13 pm]
FPC Unleashed (inline var...
by
BildatBoffin
[June 05, 2026, 06:46:14 pm]
Benchmark aligned vs unal...
by
LeP
[June 05, 2026, 06:33:08 pm]
TstringGrid read cell col...
by
hedgehog
[June 05, 2026, 06:29:11 pm]
Range checks and `Move` o...
by
ASerge
[June 05, 2026, 05:17:19 pm]
"Identifier idents no mem...
by
PawelO
[June 05, 2026, 04:15:49 pm]
Why is var after type in ...
by
Warfley
[June 05, 2026, 02:36:17 pm]
SnapModbus
by
ThomasK
[June 05, 2026, 01:40:22 pm]
Spell checking for IDE so...
by
Martin_fr
[June 05, 2026, 11:48:38 am]
Fix alt+letter dont show ...
by
mpau
[June 05, 2026, 04:02:50 am]
Conscious Artificial Inte...
by
schuler
[June 04, 2026, 11:14:34 pm]
LazNodeEditor (visual nod...
by
simone
[June 04, 2026, 08:05:18 pm]
Flamerobin error-message
by
tdb
[June 04, 2026, 05:31:45 pm]
Activate the find panel o...
by
maxnd
[June 04, 2026, 05:31:28 pm]
PDF generator
by
tdb
[June 04, 2026, 05:23:09 pm]
« previous
next »
Print
Pages: [
1
]
Author
Topic: Change the permissions of a folder (Read 4941 times)
meulinux
Guest
Change the permissions of a folder
«
on:
August 17, 2011, 01:40:25 am »
How to change the permissions of a folder in Windows 7 using
code
in Lazarus?
I need to give full permission to a folder.
Example:
c:\lazarus
Logged
jamhitz
Jr. Member
Posts: 83
Re: Change the permissions of a folder
«
Reply #1 on:
August 17, 2011, 12:19:14 pm »
In Windows you can change file permissions from the command line using the CACLS command:
Code:
[Select]
ECHO Y| CACLS /g <username>:<permission>
Have a look here
http://ss64.com/nt/cacls.html
Use a TProcess (or such) to "shell" out the command.
Logged
meulinux
Guest
Re: Change the permissions of a folder
«
Reply #2 on:
August 17, 2011, 07:00:13 pm »
----------------------------------
... Thanks ...
----------------------------------
Logged
Print
Pages: [
1
]
« previous
next »
Lazarus
»
Forum
»
Programming
»
General
»
Change the permissions of a folder
TinyPortal
© 2005-2018