Undeletable Folder in java

后端 未结 2 667
终归单人心
终归单人心 2021-01-28 23:32

I tried to create a Undeletable folder using java code. I use the command \"cacls (Foldername) /e /c /d %username%\" in command prompt it worke

2条回答
  •  日久生厌
    2021-01-29 00:12

    Is the current working directory set to the parent directory of your "hidden" directory when you invoke the command? You can change it with ProcessBuilder.directory(java.io.File).

提交回复
热议问题