aspose file tools
The moose likes Beginning Java and the fly likes how do lock a bat file? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "how do lock a bat file?" Watch "how do lock a bat file?" New topic
Author

how do lock a bat file?

Tempora Telora
Ranch Hand

Joined: Jun 20, 2005
Posts: 83
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

Joined: Apr 21, 2006
Posts: 1847
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.


42
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how do lock a bat file?
 
Similar Threads
reading integer from a file
32 Most missed questions...
File download
why do I get NoClassDefFoundError????
How to hide/disable Hibernate log to console