Hello, apologies for what seems a dumb question. I'm cleaning out files (moved my workstation from a pc to MacPro so am now fully Mac) and have an old exe file from the pc. Clam says it's a trojan so definitely want to remove it as I run Bootcamp for Cad and sim work. But.. when I try to drag it to trash or select move to trash OSX asks for my password, I enter it and then nothing happens, the file remains! I have checked it is unlocked, it is. How do I get rid of it, what am I doing wrong??
Many thanks.
MacBook,
Mac OS X (10.5.2),
Athlon XP home build, HP 6000, KTM
try this. Open Terminal, type "sudo rm -f "
Don't type the quotation marks but don't forget the space at the end, drag the file
to the terminal window and press enter in terminal.
Authenticate (you won't see your password as you type it).
This should remove the file.
I tried that and it wouldn't let me overwrite the folder, insufficient permissions. I'm the only user on the machine.
Anyway, I then was able to drag the "old" folder with the exe file to trash, it accepted it without any password required! So I could then replace the good files back into the directory. Fantastic!
I just had to hold down the option key to empty the trash for some reason.
these appear ok except for some strange ACE. It shouldn't have prevented you from deleting the file but let's try to get rid of it and see if that helps.
and try deleting the file. If that doesn't work I would try the following.
Move everything except for the bad file out of the directory /Users/julian/Hill Top/Alice/Downloads to some other location.
Create a new folder called Downloads on your desktop and move it to
/Users/julian/"Hill Top"/Alice
A pop-up will ask you if you want to overwrite the existing directory, so just say "yes".
If a name of a directory in the path has a space you need to put that name in quotation marks or add an escape character.
In your case it should look like this:
ls -aldeo /Users/julian/"Hill Top"/Alice/Downloads
Message was edited by: V.K.
Ah, I got what you are doing wrong.
The first character in the command is a small "l" not a capital "i"
Book and new glasses! It works and I have no error, thanks for being straightforward. I tried the first command you suggested (with Hill Top in quotes) and it responded:
rm: /Users/julian/Hill Top/Alice/Downloads/ysbinstall
10025353.exe: Operation not permitted.
I'm glad it finally worked out. Deleting those pesky PC files can be unusually difficult. In fact, I've read somewhere that if the filename contains unusual characters which OS X can't interpret, there is no way to delete such file at all! One has to reformat the HD. I'm glad you didn't have to do that!
Hi , many thanks, but it failed. The message in the Terminal window is "cannot execute binary file". I feel I am being very stupid here so apologies and thanks for the patience.
This thread has been closed by the system or the community team.
You may vote for any posts you find helpful, or search the Community for additional answers.
Delete exe file
Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.