Jump to content

Protect File Delete


Caiol
 Share

Recommended Posts

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... :)

Link to comment
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
Link to comment
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...

:)

Link to comment
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.
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...