Jump to content
Sign in to follow this  
AppSoftwareVld

Don't let user edit file while the script is open.

Recommended Posts

AppSoftwareVld

Hello,

 

I try to do something but I don't have a solution for that !

I want while the script is open make a file impossible to open or edit it. If it matters the file will be in .txt format.

 

Do you have an idea ?

Thanks for your attention !

Share this post


Link to post
Share on other sites
SlackerAl

FileSetAttrib ?

Start script, make read only, exit process set to normal? Or have I misunderstood?

Edit: Sorry, I see you don't want them to open it either... Depends how important it is, you could hide it, or make it system I suppose...

Edited by SlackerAl
  • Like 1

Problem solving step 1: Write a simple, self-contained, running, replicator of your problem.

Share this post


Link to post
Share on other sites
AppSoftwareVld

Hello,

 

I solved the problem !

Thank you anyway, your solution solved my problem too.

Share this post


Link to post
Share on other sites
CarlD

Have  a look here:

 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×