At log off have the script copy folder
If exist "c:\documents and settings\username\appfolde
at logon
If exist "network share path" copy "network share path" c:\documents and settings\username\appfolde
Main Topics
Browse All TopicsThe application works through citrix, and somehow the folder the application creates under the user profile is getting deleted.
Thinking of having a work around by making the application folder undeletable.
Just do not know how to do it... :)
Changing attributes does not help either.
Looking for a registry fix or a batch file that can be run to prevent the deletion.
Thanks
This question is in progress.
Our experts are working on an answer right now.
Sign up for immediate access to the solution once it becomes available.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Hi hadippa,
With you logging this under the NFS category I'm guessing your files are being shared by an NFS server which is more likely to be *nix based than Windows.
You can use something like this (if your filesystem supports it)...
chattr +i file
This will make the file immutable, that means nothing can delete it... not even root... until the that flag is removed.
This would save you from any "workarounds" where files need to be copied back. However you should look in to making the file simply not writeable first if you can as that is much less severe.
Business Accounts
Answer for Membership
by: gtworekPosted on 2009-07-17 at 23:29:45ID: 24885052
You can set permission for the files and folders to "read and execute".
If it's accessed via share (probably not the issue here) you may remove share permissions.
You cannot deny delete operation. You can only remove such permission for specified file or folder.