• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

Problem with cache.dks

Our consulting compani have done a mistake yesterday. When they correct a database they by mistake copy the design into the database, but it was a old design. The error were corrected within 4 hours but every user that was connected have a "Access denied" to that wiev.

The problem is that cache.dks on every client computer have to be deleted and Notes restarted. But we have 450 computers all over the country with a maximum of one tenth of our emploees capable of deleting that file.

Our consult does not care, and we are going to kill the contract.

Can I with a simple solution delete that file without connect with netfinity. Any program that can be mailed to every user with instruction to start that program for automatic deletion?
0
tord_f
Asked:
tord_f
1 Solution
 
tord_fAuthor Commented:
cache.dsk i the correct name. Sorry!
0
 
sk5tCommented:
If there are no sharing conflicts to it, you could just use @Command([Execute]; "del /f c:\\cache.dsk"); in a button and be done with it.

(On the other hand, if the file is always 'open,' you are out of luck--without resorting to any more brutal methods, of course.  There are no built-in means for working with the cache file.)
0
 
Z_BeeblebroxCommented:
You could sent them a batch file that they would detach from their e-mail, exit Notes and then run. If their Notes is all installed in the same place, its pretty easy, otherwise you need to somehow do a seach of the HD for that file and then delete it. I am not sure how to do that in a batch file.

Zaphod.
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
tord_fAuthor Commented:
I have tried to delete cache.dsk with Notes running and I got a Exception Violation.

I'm not sure that every user is capable of saving a .bat-file and then execute it. Our users have not a modern education, most of them.
0
 
pentapodCommented:
Do they log in to a Novell network?  You could modify the Novell login script to delete the file.  I can give more details if this is an option for you.

....Pentapod
0
 
tord_fAuthor Commented:
Its a Novell 5 network fileserver. A loginscript is OK, but I cant write it.

Tord
0
 
pentapodCommented:
OK, we are on an earlier version of Novell but I think there will be no difference.  You can do the following.

1.  Create a directory on the network that all users have read/write access to.  (Example:  SYS:\Upgrades\DelCache\)

2.  Use Notepad to create a text file in this folder that is called USERNAME.FLG and contains just a line of text - doesn't matter what but how about "Cache.dsk deletion successful" so you remember what it means.

3.  Use Notepad to create a text file (also in the same folder) called DELCACHE.BAT.  The file should contain the following text:

echo off
echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
echo *                                                                
echo *         UPDATING YOUR COMPUTER ...   PLEASE WAIT ...            
echo *                                                                
echo *        If this message has not disappeared in 5 minutes        
echo *    click on the X to close the window.  If you have problems    
echo *           contact the helpdesk for assistance.                  
echo *                                                                
echo * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

REM ------------------------------------------------------------------------------------
REM                       TO DELETE CACHE.DSK
REM
IF EXIST U:\UPGDTRAK\DELCACHE\%USER%.FLG GOTO END2
IF EXIST C:\NOTES\DATA\CACHE.DSK DEL /F C:\NOTES\DATA\CACHE.DSK
COPY U:\UPGRADES\DELCACHE\USERNAME.FLG U:\UPGRADES\DELCACHE\%USER%.FLG
:END2
ECHO END2
:END_END2
REM ------------------------------------------------------------------------------------                  

4.  Open your Network Administrator program and go to the organisational that contains all your users.  Right-click on the organisational unit and go to "Details".  Click on the "Login script" button.  Paste the following code into the box.  (If there is no one organisational unit that all your users belong to, you'll have to post this into the login script of each organisational unit, but if your Novell environment is set up properly there shouldn't be too many.)

NO_DEFAULT
DOS SET USER = LOGIN_NAME
DOS SET CONTEXT = LOGIN_CONTEXT
DOS SET MACHINE = MACHINE
MAP ROOT U:=SERVERNAME/SYS:\UPGRADES


; * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
;                  TO RUN BATCH FILE THAT WILL DELETE CACHE.DSK
#U:\UPGRADES\DELCACHE\DELCACHE.BAT
; * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

5.  Using Windows Explorer (or some such) go to the properties of the batch file DELCACHE.BAT (right click on the icon) and make sure "Close on exit" is selected.

6.  Next time the users log in, the script should automatically run the batch file.  The batch file will check if it has already been run by this user, and if not, will delete CACHE.DSK and create a flag file with the user's name.  This means you can check in the DELCACHE directory and confirm which users have successfully run the deletion.

Notes

- this was for an older version of Novell, so I can't guarantee it will work with version 5, but I'm pretty sure it should
- I have assumed your Notes is installed in a standard location of C:\Notes\Data, if not you will need to modify the files
- If your users have login scripts at the individual level, they may experience problems running a script at the organisational unit level.  Hopefully they should not, as this would be extremely bad Novell system management.
- Of course I strongly suggest you test this on just yourself or a small test group first.  You can do it individually by pasting the login script in step 4 into the Login Script area for yourself personally, not your group.

Clear as mud?  =)

If you do get this working, it's also easy to use to do virus updates, software upgrades, patch installs, password changes, whatever you want, automatically.

....Pentapod
0
 
stampCommented:
Hi Tord_F,

please try this one!

If you know the name or alias of your demaged view,
you can do this.
Add to yours mail.nsf design into the memo form a button
and give the click event this LotusScript:

Sub Click(Source As Button)
 Dim db As NotesDatabase
 Dim view As NotesView
 Set db = New NotesDatabase("","cache.dsk")
 Set view = db.GetView( "Keyring Administration" )
 Call view.Remove
End Sub

I hope your user have no restrictions in their "user preferencies: ECL".

Also advise user to click onto above button and quit the client afterwards.

After restart, the named view should disapear from cache.dsk.
In my example the view name was:  "Keyring Administration"

Regards,
stamp
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now