Sign in to follow this  
Followers 0
AppSoftwareVld

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

4 posts in this topic

#1 ·  Posted

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



#2 ·  Posted (edited)

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
1 person likes this

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

Share this post


Link to post
Share on other sites

#3 ·  Posted

Hello,

 

I solved the problem !

Thank you anyway, your solution solved my problem too.

Share this post


Link to post
Share on other sites

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  
Followers 0