I need to create a public folder, shared with everyone from an application in java
Asked
Active
Viewed 484 times
-1
-
On what operating system? Is it NFS mounted? – KevinO Apr 24 '18 at 00:18
-
https://stackoverflow.com/questions/664432/how-do-i-programmatically-change-file-permissions – brw59 Apr 24 '18 at 00:19
-
On Windows 7 with support Windows nt and vista – JuveNCX Apr 24 '18 at 02:02
-
tanks resolve problem – JuveNCX Apr 24 '18 at 14:17
1 Answers
0
Create batch file
@echo off E: ==>select drive(I used E drive), wher you want create a folder mkdir test1 ==>you need to make a folder before to share and name it (ex:test1) net share test1=E:\test1/GRANT:domain\username,full ==>share the folder using net share command Pause ==> final step
and execute in java

JuveNCX
- 27
- 3