• Post Reply Bookmark Topic Watch Topic
  • New Topic

how do lock a bat file?  RSS feed

 
Tempora Telora
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I need to be able that a person cannot launch a batch file unless i give them permission.. How do i do this?
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can't, at least not through Java.
You will need to change the file permissions in Windows to disallow execution rights to all users, then set it to execute only for specific users you designate.
You will need administrator privileges for this on any workstation the operation has to be performed at.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!