Sign in to follow this  
Followers 0
Caiol

Protect File Delete

4 posts in this topic

Hello!!

I'm making a script that made some logs files and inis with parameters and configs of the script and if a user change something or delete this files, interfere in the script execution...

I've done FileSetAttrib with atributes RHS, but it also can be deleted if the dir configuration is to allow to see these files.

Somenone knows another way to block file delete and to not read it too?

Thanks!! :)

OBS: It isn't a malicious script... :)

Share this post


Link to post
Share on other sites



Your script just needs to be coded better. If a required config file isn't present it should simply recreate it with default settings.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

Your script just needs to be coded better. If a required config file isn't present it should simply recreate it with default settings.

:)

It's a possibility... but the configs/logs that are created, will be sended to an email at the end of the script, and it isn't possible to recreate it, the information will be lost...

:)

Share this post


Link to post
Share on other sites

It's a possibility... but the configs/logs that are created, will be sended to an email at the end of the script, and it isn't possible to recreate it, the information will be lost...

:)

Might be worth considering using the registry instead of using an ini file.


Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script.

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