Quantcast
Channel: Symantec Connect - Client Management Suite - Discussions
Viewing all articles
Browse latest Browse all 2021

Script to delete file from logged on user profile

$
0
0
I need a solution

I'm trying to create a task which will delete an exe file from the logged on users desktop so far I have not been able to do this on a windows 7 machine from within Altiris 7.1 sp2 to a machine. I have tested the script directly on the machine from a CMD window and it works fine  but it won't work from the quick run option from the Task Status window. The script I have is as follows: Del "%homepath%\Desktop\Elior Signature-v2.9.exe"

If I put a pause line in it states: Could Not Find C:\Windows\system\Signature-v2.9.exe

Am I using the wrong variable for the logged on user? I can't find an answer to this although I'm sure it'll be simple in the end any help is greatly appreciated as always. thanks


Viewing all articles
Browse latest Browse all 2021

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>