Dear,Jassen, welcome to the board.
For ideas about removing all kind of temporary files from your system
see our script cleanup.kix, which you can find on our site
http://home.wanadoo.nl/scripting
btw: a little reaction and correction on NTDOC scripts
- the usage of del can let your script hang in some situations, when f.e.
a file is busy. be aware of that.
an alternative is the usage of windows 95 command deltree with option /y,
which can handle such situations.
- be aware to check your %temp% still exist after the rd or deltree
operation.
shell "%comspec% /c deltree /y %temp%" will also remove directory
%temp%. to prevent it change it to:
shell "%comspec% /c deltree /y %temp%\."
Our code will be
code:
IF @inwin = 1
SHELL "%comspec% /c rd /s /q %temp%"
ELSE
SHELL "%comspec% /c deltree /y %temp%\."
ENDIF
IF (Exist("%temp%\nul") = 0)
MD %temp%
ENDIF
btw: we think NTDOC was forgotten to type /c switch in run and shell
command.
Greetings.
Symbol
on our homepage has been linked to related http://kixtart.org topic.