zenkick
18th September 2007 04:17 UTC
Vista and Desktop EXE Deletion
Under Vista, I'm attempting to perform a:
Delete "$DESKTOP\foo.exe"
But it appears that it doesn't work.
I have:
RequestExecutionLevel admin
set, and it doesn't matter if I change the context
SetShellVarContext all
which should default to the local user if there aren't perms.
I'm using the most recent 2.30 release.
Suggestions?
Joel
18th September 2007 04:36 UTC
maybe foo.exe is in used
zenkick
18th September 2007 05:36 UTC
no, foo.exe is not in use.
Anders
18th September 2007 15:15 UTC
use
MessageBox mb_ok "$DESKTOP\foo.exe"
and make sure the path is correct
which should default to the local user if there aren't perms.
Where did you read this? As far as I know, it only gives the user's path for older systems (From helpfile "The all users folder may not be supported on all OSes. If the all users folder is not found, the current user folder will be used.")
Wizou
19th September 2007 09:49 UTC
open a command box
and type "del " followed by the path displayed by the messagebox for $DESKTOP\foo.exe (enclosed in quotes)
what does it say ?
or maybe it's a shortcut... foo.exe.lnk ?