|
|
|||||||
I'm not sure what is causing this because I'm unable to duplicate the issue on my system. The following code will delete ALL the files in the main TEMP folder - like C:\WINDOWS\TEMP or C:\WINNT\TEMP It also deletes all the files in %TEMP% for the user on XP, but when I went to test it on 2000 Pro w/SP4 it did not remove all the files, in fact it seemed to just quit and not even show the debug error line. Have tested on both KiX 4.23 and 4.5 RC1 seems to work fine on my XP system, but not correctly on 2000 Pro. Code: Function CleanTemp() |
||||||||
|
|
|||||||
just quit? you say that it crashed/died? |
||||||||
|
|
|||||||
Weird... just ran this on a couple other 2000 Pro systems and it worked fine. Have no idea at the moment what's happening there. Will post back again when/if I find out more or run into another system that has the same issue. Hmmmm... Maybe some sort of Spyware infected it and is somehow interfering with WKIX32 |
||||||||
|
|
|||||||
Well never did find out what caused the issue. However I did run into another issue where by it could easily delete all files on the system if the var was blank as it would then mean to use the root of the drive and start removing files. This update checks to make sure it will never start from the root. Code: Function CleanTemp() |
||||||||
|
|
|||||||
Had that happen to me just last weekend while updating some scripts because of a migration (Exchange 2003). Luckily I only killed 2 VMware boxes and 1 actual workstation. And the workstation got a scripted installation but still, freaked my that this "bug" could have hit monday morning... Btw.. I once typed rm ./ -r or something simular while logged as root on an aix 4.3 production machine.. some typo saved my ass |
||||||||
|
|
|||||||
(NTDOC) Forgive me if this is a stupid question, but just out of curiosity, was the user session a local admin or local "user" in all cases? I've had some issues trying to manipulate files under the %userprofile% folder tree on W2K systems (VBscript as well as KixTart), when the user had no local elevated rights. |
||||||||
|
|
|||||||
hmm... that's weird. |