Link to home
Start Free TrialLog in
Avatar of tord_f
tord_f

asked on

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?
Avatar of tord_f
tord_f

ASKER

cache.dsk i the correct name. Sorry!
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.)
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.
Avatar of tord_f

ASKER

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.
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
Avatar of tord_f

ASKER

Its a Novell 5 network fileserver. A loginscript is OK, but I cant write it.

Tord
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
ASKER CERTIFIED SOLUTION
Avatar of stamp
stamp

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial