Page 1 of 1

Change data file attributes via CHS macro

Posted: Mon Nov 29, 2010 11:17 am
by Jackus
Hello to everybody. I would like to secure my ChemStation data files a little.
I would like to change their attributes with macro to Read only immediatelly when the data are collected vith Post Run Command/Macro (in Run Time Checklist). Is it possible?

Can you give me a small hint?

Thanks

Re: Change data file attributes via CHS macro

Posted: Wed Dec 01, 2010 10:41 am
by Jackus
OK I answer myself...

ExecNoWait "Attrib drive\path\filename +R"

Re: Change data file attributes via CHS macro

Posted: Wed Dec 01, 2010 3:24 pm
by lmh
You would get better data-security to attach your instrument PC to another PC, and set up a suitable process to copy over new data-files every 30min or so. This gives you a spare copy on a different computer, so if the hard drive of instrument PC goes up in a puff of smoke, you don't lose any data.

Re: Change data file attributes via CHS macro

Posted: Wed Dec 01, 2010 3:25 pm
by lmh
... oh, of course, there are lots of more professional solutions to what I just suggested, but I was going for the really easy one...

Re: Change data file attributes via CHS macro

Posted: Thu Dec 02, 2010 12:43 pm
by Jackus
You would get better data-security to attach your instrument PC to another PC, and set up a suitable process to copy over new data-files every 30min or so. This gives you a spare copy on a different computer, so if the hard drive of instrument PC goes up in a puff of smoke, you don't lose any data.
Such kind of protection I applied some years ago. New data files are copied once per day on fileserver with mirrored disk. I tried to find possibility how to protect data against accidental overwriting. Maybe better than Attrib will be change of user rights with Cacls. OS is Win2000 with the latest service pack, files are stored on NTFS disk. I know there is professional solution for this but it is quite expensive. :wink:

Thank you lmh for comments.