Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 30534

Delete Temp Files only works on XP Machines

$
0
0

Current script does

If true

   getVariable(Agent Install Drive (C:\)", " ", "drv", "All Operating Systems", "Halt on Fail")

   executeShellCommand(del #drv#temp\*.* /q", "Execute as User", "All Windows Operating Systems", "Halt on Fail")

This reports as successful on Windows 7 32-bit and 64-bit, but doesn't actually delete any files.

There is a Windows Environmental "TEMP" variable that is defined as %USERPROFILE%\AppData\Local\Temp.

%USERPROFILE% on Windows 7 evaluates in our shop to c:\users\username.ourdomain

How can I modify this procedure to work with these conditions.  I'm NOT interested in the CCleaner scripts that many have mentioned as we don't have CCleaner installed on all machines and don't particularly want it installed.

Does anyone have any help that directly addresses this question???

 


Viewing all articles
Browse latest Browse all 30534

Trending Articles