Janisr
27th June 2002, 20:38
What steps do I need to take to empty the $BSE\TMP directory on WinNT? Can I just shut down BaaN and throw the files or are there some function to perform this automatically?

Regards Jan.

benito
28th June 2002, 01:27
You can easily create a DOS batch script to delete the temp files. This script should be available to certain people only as you dont want to accidentally delete active tmp files.

OmeLuuk
28th June 2002, 09:14
In the tmp dir there are all kind of temprarily files that may be used during login time. One of the largest sources is the printing. Before sending prints to a (OS specific) print queue, the bshell generates a printer and OS independent file that is being picked up by the portingset.

These tmp files contain data to be able to reprint these printjobs. There is a table and a session where the filename and print-status is stored. From there you can also reprint previously send prints. This session is the ttaad3120m000.

On Unix the printerdaemon takes care for deleting these files. They will be automatically deleted and also the status in the table will be changed after a certain delete wait time.

On NT there is no printerdaemon. So it works slightly different. There have been fixes that deleted these files right away, but this has been reverted.

Best way is to empty the printqueue before deleting the tmp files. This makes the system less inconsistent. Also do keep a delete wait time in consideration, so you won't delete active files. 7 days is generally spoken safe enough.

Janisr
9th August 2002, 12:54
Hi again,
Since I'm not so familiar with WinNT batch programming I would appreciate if someone could provide an example batch-pgm for "cleaning up" the $BSE\TMP so I have something to start with.

Thanks.

benito
10th August 2002, 00:00
Hi,

Look at this site,

http://users.accesscomm.ca/gbraun/batch/batches.htm

There are few files there with delete functions. Be sure to test it first on a test machine before testing on your producton box.

garfield ruhr
28th August 2002, 18:37
Hi *ALL,

for WINNT and repeat print requests the session ttaad3225m000 was created and introduced. If this session is available then the print files on NT are hold in the $BSE/tmp directory. Start the session ttaad3225m000 to remove all no longer used files like the print daemon does.

Bye,

Garfield

KO.SA.
26th September 2002, 13:34
hi
to clear the temp folder i follow this steps...

1-run ttaad3221m000 to clear the device queue
2-delete all tmp* files of $BSE/TMP folder.

to create a simply script to delete them try it...
use the notepad and write it:

del <path>/baan/tmp/tmp*

save and rename it like "cleartemp.cmd".
You can do it with a scheduler batch every night for example.

OmeLuuk
26th September 2002, 14:24
If you are sure everyone (even Job users) is logged off, this would be fine. If someone remained logged in, you cannot delete the file in the first place, deleting the file-in-use can cause nasty problems!