How to find and remove "spicy" media files from my PC

129

19

I have an embarrassing problem: during my younger and wilder days, I used to download a certain type of movie clips and pictures. The combination of youthful foolishness and a couple of beers apparently caused me to put these files in odd places on my hard drives.

My girlfriend is moving in with me in a few weeks, and I am horrified at the prospect of her stumbling onto one of those files. I have been over my drives a few times, but I manage to find another of those dammed files each time. I have huge drives containing hundreds of thousands of files, most of them legitimate and work related, so I can't just format the PC. To complicate matters even more, some of the offending files are named in misleading ways.

I seriously need help here. How can I make my PC honest again?

Scott

Posted 2011-09-04T20:00:00.763

Reputation: 955

Question was closed 2012-07-16T21:17:28.133

2windirstat for windows and kdirstat for *nix the filter on file type/name – ratchet freak – 2011-09-04T21:37:09.463

204Share your entire harddrive on a p2p network and see what files get the most downloads! :) – Doug T. – 2011-09-05T01:38:57.313

5It would be a pretty cool idea for a software program. It could scan all media files and use a filtering algorithm (similar to Google Images - moderated mode) to detect files that are likely to be risque. Then it could move them all to a "quarantine" folder, and let you decide what to do with them. – jonathanconway – 2011-09-05T05:25:47.933

3If they have normal file extensions and just the rest of the filenames are "misleadingly named" you just have to search for all files of each type and delete the nasties identified by their thumbnails. If even the file extensions are "misleadingly named" then you need a tool that can identify file types by their contents and either give them correct extensions or list them by thumbnail in something like a file browser which includes a delete button. – hippietrail – 2011-09-05T07:00:27.010

1Find all files above certain size (50MB?) - should work at least for the movies – GDR – 2011-09-05T21:26:11.753

Apart from media, you may want to remove web visit traces too. Flash used to be (or probably still is) notorious for keeping track of Flash-enabled sites you visit in its own cross-browser directory structure. (Be sure to move up in that structure as well; it's not just LSOs that reveal where you've been.)

– Arjan – 2011-09-09T09:37:26.253

Answers

144

  1. Use the other answers to remove horse porn and that icky scat stuff.

  2. Talk to your girlfriend. Tell her that you are a normal guy who watches spicy media, drinks beer and feels embarrassed to be accused of the former. This gives you the advantage of building up communication skills and making the relationship more honest and transparent.

  3. Tell her that she is the one and you don't really need these media files any more, she can delete them at any time herself.

fungusakafungus

Posted 2011-09-04T20:00:00.763

Reputation: 1 313

37 start="4">

  • Follow through and really don't watch any of this any more, so if she does find it the timestamps associated with the file will back up your claims.
  • < – Joel Coehoorn – 2011-09-05T03:44:53.277

    11File times can be faked, so they're not very reliable evidence. After quickly running perl script, he says "Hey look, honey. I last accessed this one 12 years ago!" – Anthony – 2011-09-05T05:40:12.040

    2@Duracell: when did this become about proving 'guilt' (?) – sehe – 2011-09-05T07:02:30.673

    25+1 for a non-technical solution to a social problem – soulmerge – 2011-09-05T08:28:41.163

    17@Joel Unrecommended! Be honest about how looking at 'spicy' stuff is ok (although get rid of the horses, ja) and don't freak out. If she's mega-threatened by you being your own separate person, you'll have bigger fish to fry. – buildsucceeded – 2011-09-05T09:50:25.140

    4-1 for a non-technical solution to a social problem. SU is a place for technical answers to technical problems. Whether or not this is right is irrelevant. – Pops – 2011-09-05T19:39:45.833

    @sehe, because if his girlfriend has any technical knowledge, she'll know that timestamps are meaningless in this situation. – Anthony – 2011-09-05T23:13:24.543

    3@Lord Torgamus: To the extent that's true, it's an issue with the question (requesting a technical solution to a non-technical problem), not with the answers (providing appropriate solutions to the question that was asked). If you have a problem with it, vote to close the question as off-topic. – Dave Sherohman – 2011-09-06T07:59:47.640

    1@Dave, I would, but there are technical solutions to this problem. They may not be the best ones overall, but they are the best ones for SU. – Pops – 2011-09-06T13:37:32.683

    8@Lord Torgamus, If you have ever worked in IT security you will know that the weakest link in any system is the social one. Very frequently "user education" (in this case the OP talking to his girlfriend about the images) is better than any technical solution money can buy. – Scott Chamberlain – 2011-09-06T14:30:12.657

    @Scott, it doesn't matter that that solution is better. It's off-topic/not appropriate for this site. – Pops – 2011-09-06T14:33:34.510

    1

    Since a back-and-forth in the comments isn't really constructive, I'm referring this issue to the community. @Scott

    – Pops – 2011-09-06T15:03:44.380

    Please see above comment @Dave – Pops – 2011-09-06T15:03:55.893

    @ickydog - spicy stuff is more like crack than beer. A little beer all the time won't hurt, only a lot all the time. A little porn all the time will f*ck up 100% of its victims. Do a little counseling and you will see. – FastAl – 2011-09-07T15:54:05.130

    @FastAl - What? You know that there is no link between porn and bad behaviour, right? – Fake Name – 2011-09-08T00:29:31.803

    5@FastAl I'm going to have to call 'scaremongering' on that one. – buildsucceeded – 2011-09-08T16:10:12.420

    5I suspect that @FastAI is basing his claims on the observation that over 90% of people being counseled for relationship problems have used porn on a regular basis, while failing to realize that over 90% of people not being counseled for relationship problems have also used porn on a regular basis. That's like saying that breathing causes murder on the basis that every murderer breathes. – Dave Sherohman – 2011-09-09T10:53:04.023

    84

    It is called format and reinstall. It is the surest way to do this. Backup what you know you want to keep (presumably you know where these files are) and nuke the rest.

    You can always do a search for every type of media file using built in search or a third party tool (ie, searching all .jpg files in the system, or all .gif or all .mpeg, etc) and going through the results one by one, but that is time consuming and always runs the risk of you missing a certain file type.

    MaQleod

    Posted 2011-09-04T20:00:00.763

    Reputation: 12 560

    3+1 - I wrote up an answer and just seen it is pretty much the same as you suggested! I would recommend a reinstall, but, failing that... possibly use a media handling tool that can auto scan the drive and index everything making it easier to find the files to delete! – William Hilsum – 2011-09-04T20:26:31.297

    +1. Even if the explicit content remains in your backup, the likelihood of stumbling across it is far less. Plus, you have (legitimate) deniability: they are but a remnant of your old life. – Chad Levy – 2011-09-05T19:29:32.050

    2This is kind of rude considering that the OP specifically stated that he didn't want to resort to formatting. Still, it's probably good for future visitors. – Pops – 2011-09-05T19:43:16.220

    2@Lord Torgamus, I gave an alternative, but I was just being honest, either search for the files type by type and risk missing a set or nuke them all. I know backing up thousands of files is time consuming, but so is searching through media files type by type and inspecting each one for content. The former lets you mass copy and leave for a while, the latter you need to constantly be there to work. Sometimes you need to just make a sacrifice if something is that important to you and the OP made it clear it was important to him to have it gone. – MaQleod – 2011-09-06T14:51:36.210

    1I don't really disagree with the technical content, but something about your wording rubbed me the wrong way. Maybe it subconsciously triggered the "the answerer didn't read the question" part of my brain, I don't know. – Pops – 2011-09-06T15:02:47.533

    @MaQleod - I've pretty much done the same in the past whenever I had a tough virus to remove but I also created a Virtual Disk drive and copied the contents of my Physical drive onto it. This way I have a nice clean machine without completely losing, all of my data – drupii – 2011-10-12T21:09:33.657

    If you're talking technical solution to removing something that you don't already know how to handle: Nuke it from the orbit. It's the only way to be sure. – XTL – 2012-03-07T12:35:58.743

    78

    1. Get an external hard drive(s) large enough to hold everything good and bad. Use encryption software such as TrueCrypt to create encrypted partition(s) on the external hard drive. Copy everything good and bad onto the encrypted drive.

    2. Reboot and test that you're able to retrieve the files from the encrypted drive.

    3. Once you've backed up everything onto the encrypted drive, back up the headers of the encrypted drive according to the instructions of the particular encryption software.

    4. Format and reinstall your operating system, and also format any other external drives that might have "spicy" stuff.

    5. Copy back the non-spicy stuff onto your main hard drive(s).

    6. Put away the encrypted hard drive in the closet. If you later find that there is a legit file that you forgot to copy in step 5, you can dig up the encrypted hard drive to look for it. Since you won't be using the encrypted drive often, you're probably going to forget the password, so make sure to have a system to retrieve the password in case you forget (e.g. the first 12 letters of the first 12 words of Chapter 12 of a certain book).

    On the encrypted drive you might consider creating the first partition as unencrypted with innocent stuff on it, so it's less obvious to somebody who uses the drive that it has any encrypted data. Or you could use the "hidden volume" feature of the encryption software, if the software you choose has the feature and you're willing to deal with the extra complexity.

    Mike Rowave

    Posted 2011-09-04T20:00:00.763

    Reputation: 1 835

    27This is by far the best answer. I have the same problem that the Original Proponent has, and didn't want to delete the spicy files (collector's stuff), so I created encrypted block files which I mount only when I want to download more. Also, I use Linux, so things are a lot unfamiliar already to non-geeky GFs, and a block device without file extension, although huge, won't raise any suspicion, much less be mounted accidentally. – heltonbiker – 2011-09-05T12:51:54.780

    12@helton: instant +1 for "collector's stuff" – o0'. – 2011-09-05T15:45:52.413

    I also have some stuff I downloaded when I was a student. I don;t even watch it anymore, the qualitys awful, it just makes me feel better knowing its still there. Plus after the effort I went to to get it I'm not willing to let it go. I keep it on an encrypted partition. In a hidden folder. Safety First ;-) – Joe Taylor – 2011-09-06T13:29:58.807

    2This solution is the best because you can access again the spicy media if you break up with your gf =) – Thomas Bonini – 2011-09-10T22:17:10.263

    Label the disk clearly as "backup" and tell her where it is and not to touch it, as Backups are Important! – XTL – 2012-03-07T12:29:04.757

    48

    This is a potential X-Y Problem (and I'm not talking about X and Y chromosomes). Your real objective (X) is, presumably, to maintain a healthy and successful relationship with your girlfriend and you've decided that purging your computer of all sexual content (Y) is the means to accomplish that.

    Before you spend too much time and effort on Y, have you verified that it actually will accomplish, or at least contribute to, X?

    In more straightforward terms, do you even know what your girlfriend's views are regarding porn in general and/or the specific flavors that you've enjoyed in the past? fungusakafungus has already advised honesty, which is imperative here. Beyond that, though, women these days are becoming increasingly tolerant of porn and, believe it or not, some of them actually like it.

    Before you fall all over yourself groveling for forgiveness for having looked at other women before meeting her and swearing up and down that you'll never want to see any other woman naked again so long as you may live (trust me, no matter how much you mean it when you say it, you'll be lying), take a few minutes first to find out whether she even cares in the first place. She very well may not. Or maybe you'll discover that she's willing to show you her collection if you show her yours.

    Otherwise, I have to refer back to part of Preet Sangha's answer: "If you can't talk to your partner honestly then I suspect maybe you should consider deleting or upgrading your potential partner?" Bigger issues than this will come up in any long-term relationship. If you can't talk about this, you'll be in bad shape when they do. And I maintain that any relationship which requires you to disavow your past and deny a part of yourself for the indefinite future, all out of fear that your partner might find out who you actually are, is simply not worth it.

    Dave Sherohman

    Posted 2011-09-04T20:00:00.763

    Reputation: 5 143

    8+1 "mabye she's willing to show you her collection" - exactly – sehe – 2011-09-10T23:22:25.637

    35

    You can use Picasa to do a scan of all your media files on your computer, tag and organize them. This prevents you from having to do a reinstall and organize your media at the same time.

    Archimedes Trajano

    Posted 2011-09-04T20:00:00.763

    Reputation: 879

    This is what I was about to suggest too. In case the media is other than pictures, some other tool that does a scan for that type of file to create a library would help. I believe this would be the best way to achieve what the OP has in mind, with format/reinstall etc not being viable options ! – Abhinav – 2011-09-05T14:42:28.693

    picasa can do movies as well but you may have to look at the movie itself since it can't just thumbnail it. – Archimedes Trajano – 2011-09-06T06:16:33.143

    2+1 This is easy, even if potentially a bit time consuming, and actually answers op's question. Should be #1 IMO. – Christopher Galpin – 2011-09-06T17:28:04.053

    26

    I don't think you're going to find a piece of software that can automatically identify media files of a certain genre or content, unless they are expressly tagged as such. :)

    If you're really paranoid/worried about it, your only technical option is to backup the stuff you DO want to keep, format the drive, and reinstall your Operating System.

    A few hours of pain doing that now may save a few weeks of pain if she finds them in the future.

    Another option: Tell your G/F about them and explain yourself; if she leaves you, it wasn't meant to be. Honesty is the foundation of every good relationship. ;)

    Ƭᴇcʜιᴇ007

    Posted 2011-09-04T20:00:00.763

    Reputation: 103 763

    7If spicy means porn, then there really is software which will identify such content – Scott Weinstein – 2011-09-05T20:20:43.280

    1@Scott: How accurate is it these days? It's not something I follow, but the results were pretty poor (high rates of both false positives and false negatives) last I heard. – Dave Sherohman – 2011-09-06T07:43:55.747

    21

    I'm not sure what all the relationship advice is doing here. That said:

    A lot of research has gone into automatic identification of porn images. A quick google search brings up pages such as http://www.yangsky.com/products/porndetect/index.htm

    Scott Weinstein

    Posted 2011-09-04T20:00:00.763

    Reputation: 734

    On that latter subject, you should see this SuperUser question.

    – JdeBP – 2011-09-05T18:31:30.540

    1Interesting research! And a good answer, assuming the OP is in fact asking about porn, and not, say, dogfighting videos. – Pops – 2011-09-05T19:46:54.627

    2As I said in my answer, this smells like an XY problem to me and the appropriate response to XY problems is generally "this is the correct way to solve X", not "here's how to do Y". Telling them how to do Y leaves the actual problem unresolved. In this case, X is a social problem which cannot be resolved by any amount of purged data; a social solution is the only way to truly address it. – Dave Sherohman – 2011-09-06T07:52:40.990

    20

    I was in a similar situation as you at one point, my girlfriend had just moved in with me and she got to see how much I really used my PC. In preparation, BEFORE she moved in, I swept all of the PCs for 'stuff'. I figured we were living together, working at the same company, and going to the same school, our lives were completely intertwined at that point, and that it was best to just get rid of all of the 'stuff'.

    After moving in she would give me a hard time about all of the time that I wasn't paying attention to her by casually stating "There are sometimes that I think you like your computers more than you like me" ( there were 15 in the apartment in the second bedroom). Then she started getting inquisitive... "What ARE you doing when you are using your PC?" which I would poetically reply "I don't know, stuff" (Just a warning, that's really not the best answer).

    One day, I'm cleaning up the hard drive on my PC, searching for old files and deleting the ones I didn't want to keep. She came in and asked "what are you doing?" I knew the coast was clear, because I already swept any spicy files BEFORE she moved in.

    This particular day I was searching by file type, thinking I would just get rid of files that I didn't need that I had downloaded. This was the early days of the internet, so if I saw a cool program or picture, I felt compelled to save it because there was still the fear that this internet thing would 'go away' at some point.

    Ah, the folly of youth... I invited her to sit down and join me, figuring that this would be a great opportunity for her to see what I was doing while I was using my PC. We went through 100 or so pictures together, all of family, and friends, and put them into folders so they were easy to find later. I stumbled on a picture named something like "Christmas Time.jpg" and figured it was a picture of me and my family when I was a kid, or a corny x-mas graphic.

    I think I remember saying something like "See, were having a good time in front of the old PC. Hmm, let's see what this picture is honey". I double clicked the picture, and Windows opened a full screen preview of it, a girl naked in a santa suit in a VERY compromising position. In an instant I closed and deleted the picture. I had hoped that the whole process was too quick for her to realize what happened, or she had turned her head to look at the cat momentarily. In another instant I turned and looked at her to gauge her reaction. Her mouth was agape, and the color had sunk out of her face. It was too late. She had seen it all. The damage was done. Without saying a word, she got up and left the room. She didn't even give me time to try to talk my way out of it.

    I got the silent treatment for about a week after that. To make matters worse, we were living together, working at the same company, and going to the same school, our lives were completely intertwined at that point.(DOH!) It seemed as if there was no way of ever living it down. I was sure she was on the verge of dumping me and moving back in with her parents.

    Fast forward ten years... The whole incident wasn't as relationship busting as I had originally thought. We've been married for several years now, and have a beautiful, super smart child together.

    The moral of the story is that it doesn't matter how you do it, you just need to get rid of ALL of the spiciness on your PC. If you leave any of it, there is a chance that you will get complacent and forget about something, or too proud and think that she will never find it. I guarantee it that she will find it, and it will definitely not be in the situation of your choosing. Just imagine her saying the first time you have a holiday together, "Hey mom, check out these great pictures we've got on our PC", right before inadvertently opening the illicit folder...

    Back to the folly of youth... Looking back at the situation now, I realize that when I downloaded the free files in the first place I was just a desperate nerd looking for any outlet or chance at even one sided or virtual-ized interaction with a woman. I didn't realize it right away when my girlfriend moved in, but this was my chance to be with a woman. A real woman. After all... she liked me enough to want to share a house with me, there was no telling what would come of our relationship.

    So congratulations man, you've made it. Don't be an idiot and screw it all up by holding on to any fictionalized ideas of what a woman should look like or do when a camera is pointed their way. You've got a real one that is going to start climbing in bed with you every night in the near future, so make the most of it. I suggest spending several nights and possibly a weekend or two alone BEFORE she moves in, completely deleting EVERYTHING that is even remotely 'spicy'.

    How to round up the files? If you are using windows, you can use the built in search function. There is an option to search for 'Media" or "Movies and Pictures" since windows XP, just make sure to change the option to expand the search to look in system and hidden folders as well.

    To catalog all of the images on your PC, use something like Picasa or Shotwell to find all of the images on your machine. These programs are fast and free, and will find every image on your PC.

    http://yorba.org/shotwell/

    http://picasa.google.com

    Best idea AFTER you figure out your stray file issue, and you want to hold on to the illusion of what a woman may be? Use something like Virtual box for 'play' time. That way when your conscience rears it's head and your future wife wants to look at what your doing on line you will only have to delete ONE file.

    http://www.oracle.com/technetwork/server-storage/virtualbox/downloads/index.html

    http://www.virtualbox.org/

    In closing, you will have to ask your self the following questions:

    How do you want to run your relationship?

    Do you want to build it on trust and respect? Or do you want to build it all on a foundation of deception?

    Is a bird in the hand worth a folder full of smut?

    After all, would you really keep a stack of issues of Hustler and Penthouse laying around for her to stumble on?

    bakoyaro

    Posted 2011-09-04T20:00:00.763

    Reputation: 351

    11"or she had turned her head to look at the cat momentarily" -- was the cat in a compromising position as well? – sehe – 2011-09-05T07:09:56.387

    4First time I read "How do you want to run your relationship?" I read "How do you want to RUIN your relationship?"... – Rich – 2011-09-05T15:24:46.367

    @Rich Excellent addition, the thing to remember is that most of the time these files are free. FREE! – bakoyaro – 2011-09-05T16:38:46.610

    14

    I agree with some answers here, though I'm quite surprised none have suggested to create her an account. You'll use your account, she'll use hers. You should do so regardless of this problem, anyway.

    Of course this solves the problem only for the internal disks and not for the removable media.

    o0'.

    Posted 2011-09-04T20:00:00.763

    Reputation: 1 868

    5+1 for creating a new account. This should be done for anyone who shares a computer, regardless of "questionable" content. Files stored outside of the users directory, however, are still accessible by anyone (unless the permissions for the file or parent folder have been explicitly modified), so this is not necessarily a solution if the images are stored in a folder called C:\stuff or some such thing. – Chad Levy – 2011-09-05T19:00:29.157

    13

    If it was "during you younger and wilder days", I would try with date based search.

    If you have Windows 7, write down in search box (after hitting Win button or clicking on Win sign) search. First result should be "Searches". Open it and then hit icon "Everywhere". It will list all files you have on your disks (and which can be accessed from Windows). Right click somewhere on black space on the right margin, sort by and then hit "More...". It will list atrributes by which those files can be sorted. I guess, for you ones starting with Date will be the most interesting. Look also for Duration, Year, Frame rate (to filter video files) and maybe Tags if you're lucky.

    StupidOne

    Posted 2011-09-04T20:00:00.763

    Reputation: 409

    1+1 for date based search. If you can include this in a search pattern along with other criteria like type and size, excluding folders known to be clean, etc. you can probably narrow the search down considerably. – Shawn – 2011-09-06T02:24:43.727

    12

    Buy a second hard drive, and install any operating system on it. Then you can "dual boot" your dirty OS for play time, and your clean OS for girlfriend time.

    DUAL BOOT IS THE WAY TO GO. Just make sure to keep a password on it so she can't stumble into the dirty one.

    waterwizard11

    Posted 2011-09-04T20:00:00.763

    Reputation: 367

    @Duracell: what, you don't have this yet? I have a chroot environment for this purpose :) – sehe – 2011-09-05T07:07:46.873

    4

    Use windows search to find "*.avi, *.mkv, *.jpg" etc, etc. Then enlarge the icons on the search results so they have previews and quickly scroll through them for "dirty" photos and videos. Another tip would be to set the file size to above a certain amount (100KB for instance) so you dont get windows system gifs and jpegs.

    shabos

    Posted 2011-09-04T20:00:00.763

    Reputation: 41

    4

    1. Remove the spicy files: Run picasa (or other image indexer) on your hard drive. Delete all spicy images. Run windirstat on your hard drive or search for all movie formats (*.avi, *.mpg, *.mpeg, *.flv, etc) and look for large movies, etc. Delete all spicy movies.
    2. Keep This Cleaned HD as a Backup: Buy a new hard drive (say bigger size; honestly label old one as backup), reinstall the OS, important programs, copy over select non-spicy files that you need, and your old hard drive is now the backup (not stored in the machine). Personally, I would not encrypt this drive -- that will raise huge red flags like you have something to hide (unless the spicy photos had something you need to hide from her at all costs; e.g., spicy photos with just men).

    This is overkill for a reasonable gf moving in (unless she's already let it known that's she's strong anti-spice)--just do the first step (if one spicy photo makes it through that was downloaded years earlier; she won't care too much). However, if you wanted to do the same thing but for a different reason; say small children will be using the computer this makes sense.

    Also, I wouldn't trust answers saying delete everything but files known to be safe. You will forget something that you will want later on.

    dr jimbob

    Posted 2011-09-04T20:00:00.763

    Reputation: 504

    3

    Find files on the drive with the extensions of media files. I doubt your work stuff has a lot of such stuff scattered all over the place.

    Loren Pechtel

    Posted 2011-09-04T20:00:00.763

    Reputation: 2 234

    3

    you could tell her that you are being honest & open with her... that way you would build (more) trust and openness.

    plus this way you can tell her that if she (by-chance) stumbles upon some "spicy" media she can delete it (if she wishes)..

    Update: you could consider using Google Picasa to list out all images in your computer.. it will be one stop shop to finding all images, videos (basically any media) & you can categories them & then delete.

    Anantha Sharma

    Posted 2011-09-04T20:00:00.763

    Reputation: 172

    3

    there's programs to do that.

    But they aren't ready-for-use in your situation. Anyway, it might worth taking a look:

    http://www.safevchat.org/ -> detects nudity in chat room

    http://www.patrick-wied.at/static/nudejs/ -> using javascript. Some review about it here: http://davidwalsh.name/nudejs

    PORNsweeper -> from http://money.cnn.com/2000/09/20/technology/porn_sweep/

    woliveirajr

    Posted 2011-09-04T20:00:00.763

    Reputation: 3 820

    2

    You can run a batch script to delete any and every image. Just put it into the directory you want to delete all the images, it will also delete images in sub-directories

    @echo off
    echo Deleting files
    del /s /f *.png
    del /s /f *.gif
    del /s /f *.jpg
    del /s /f *.bmp
    :: you can add more file types.
    echo Operation completed!
    echo. Done!
    pause
    

    Just copy and paste it into notepad or another text editor and save it as a *.bat file. Updated to delete read only files.

    Mythrillic

    Posted 2011-09-04T20:00:00.763

    Reputation: 1 959

    You can force deleting of read-only files with /f. – Joey – 2011-09-04T23:07:59.713

    Oh yeah. Forgot about that. I'll update with changes. – Mythrillic – 2011-09-04T23:20:26.567

    1and this would delete... EVERY file, even ones that are useful in some way. – Journeyman Geek – 2011-09-05T00:58:59.483

    Yeah, I realised that. Ill change it so you just put it into a folder that you know you want to delete all images out of instead of going straight to C:\ and recursivly deleting every image. – Mythrillic – 2011-09-05T01:12:47.187

    1I'd much prefer if there was some processing of the images, to automatically find only X-rated ones. Otherwise you'll be spending way too much time sifting through the images yourself. It's difficult though. – jonathanconway – 2011-09-05T08:13:04.607

    This could potentially ruin legitimate, albeit poorly-designed programs that store image assets in their original formats. – Chad Levy – 2011-09-05T18:56:21.190

    2

    On a serious technical answer, apps like GrandPerspective and WinDirStat might be your only "friends". But nobody can really beat fungus's answer - this is a social issue and you should aproach it as such.

    cregox

    Posted 2011-09-04T20:00:00.763

    Reputation: 5 119

    1

    Actually the best tool for finding hidden porn on a computer is an unsuspecting partner, just try it - they'll find it no matter how hidden it is. :-)

    Seriously though - there are many many tools (like windirstat) that will help you find and delete them. The question remains however....

    If the files have remained on your system for this length of time then I suspect that they have become 'sticky'. This leads to them reappearing (usually in the middle of the night) a while after they've been deleted. You need perhaps a more long term solution - my suggestion is that

    1. If you can't talk to your partner honestly then I suspect maybe you should consider deleting or upgrading your potential partner?
    2. Consider taking the disk out of the PC, and destroying it by smashing it against a wall. Consider perhaps smashing it against something else as a reminder that the Internet is here to stay in you life forever.

    The first option may remove the problem in the simplest way, while the second, though more drastic, may only be the short term solution and could possibly lead to a more pressing longer (maybe shorter!) term problem.

    BTW: This the best SU question I've ever seen; kudos for posting it.

    Preet Sangha

    Posted 2011-09-04T20:00:00.763

    Reputation: 1 126

    3It's about removing material. If the material doesn't need to be removed then the problem is gone. – Preet Sangha – 2011-09-05T06:57:02.880

    You had edited your post; apparently, I missed your edit. Sorry. – bwDraco – 2011-09-05T07:13:35.747

    "sticky" files? Is it some urban legend? "deleting" a partner? ... – Vi. – 2011-09-05T07:35:19.990

    @dragon - no worries mate. – Preet Sangha – 2011-09-05T07:37:00.290

    1The first, single-line, version of this answer was so much better and to the point. This edit is a jungle of random stuff. – o0'. – 2011-09-05T15:49:36.280

    1

    You can try indexing and filtering files on your computer using some kind of app or manualy written script.

    Then you get paths to the stuff, and then you can manually check it (it will make that any type of 'dangerous' file will be caught (or maybe it is spelled cought?).

    You can filter out directories created recently for photos with your girlfriend etc or movies from your engagement or somewhat. The list will be shorter then. You can also do it reverse way - find only files you are willing to save and wipe this ol' n'full-of-dirty-media-piece-of-steel-and-sillicon!

    Sorry but I haven't time for now to write such an app/script, but hope this method would help you.

    lukaszd

    Posted 2011-09-04T20:00:00.763

    Reputation: 11

    1

    When you say PC, I'm assuming you're running Windows.

    Windows 7 Explorer you can type kind:picture and it'll find all picture files on your computer, otherwise something like *.jpg,*.gif,*.jpeg,*.bmp,*.png might work. Unless you're like the rest of us that saves them to *.zip and renames those, you're not in too bad a situation.

    It'll take time, but make sure you look at them. You might be able to avoid certain directories, but be sure to also scan your Temporary Internet Files folders as well as your browser download folders.

    If it's really a concern, the best way would be to do what you don't want to and that's to copy the files you know you need to a clean drive, then reformat/reinstall and copy back your old files. It's not fullproof, since you are retaining old files, but it's something. Sometimes it's good just to start from scratch anyhow (for peace of mind).

    vol7ron

    Posted 2011-09-04T20:00:00.763

    Reputation: 403

    1

    I have code that will put all the files with specific extension to one folder from given source. If you are able to find from those, it will be easier to search in one folder instead of the whole drive.

    The code is here, and the procedure is as follows:

    1. Copy the code below into a text file and save it as a .vbs file.
    2. Replace D:\Src\ and D:\ALL Dist\ with your source and destination folders.
    3. Now save the code and just double click the file.

    Code:

    Dim fso
    Set fso = CreateObject("Scripting.FileSystemObject")
    Call ListFolderContents("D:\Src\")
    Set fso = Nothing
    
    Sub ListFolderContents(path)
    Dim fso
    Set fso = CreateObject("Scripting.FileSystemObject")
    Dim strSourceFolder
    Dim strDestFolder
    strDestFolder="D:\ALL Dist\"
    Set folder = fso.GetFolder(path)
    'wscript.echo folder.path
    
    For Each objFile in folder.files
    sourceFileName = fso.GetFileName(objFile)
    'wscript.echo folder.path+"\"+sourceFileName
    sourceFileName = folder.path+"\"+sourceFileName
    If fso.FileExists(sourceFileName) Then
    If not fso.FileExists(strDestFolder) Then
    fso.CopyFile sourceFileName, strDestFolder, TRUE
    End If
    End If
    Next
    'fso.CopyFile sourceFile, destFileName
    
    For each item in folder.SubFolders
    ListFolderContents(item.Path)
    
    Next
    set folder = Nothing
    End Sub
    

    lAH2iV

    Posted 2011-09-04T20:00:00.763

    Reputation: 11

    1

    [...] caused me to put these files in odd places on my hard drives

    Also note that some directories, including temporary internet files, might not be easily searchable using standard tools. (Like: Windows Explorer does not really show one the true contents of its Temporary Internet Files folder.) And temporary internet files might not have a recognizable file name extension. But that's mostly solved by clearing the temporary files.

    But if you used non-standard file name extensions yourself, then Windows won't help you find them unless you use some utility that relies on examining the file, including using magic numbers. Or, if you're not on Windows at all, then surely you cannot rely on file name extensions when searching, as many operating systems simply don't require such extensions.

    To search by examining the file contents, if possible using magic numbers, tested on a Mac:

    #!/bin/bash
    
    # Recurses into all subdirectories of the current folder, to determine which
    # file types are present in that directory. As this takes a long time to run,
    # this also stores the results for later use.
    
    # Recurse all directories from current directory:
    find . -type d | while read dirname; do 
        # For each directory: 
        #   - find -type f   find all regular files
        #   -   -exec echo   print the directory name and some comma separators
        #   -   -exec file   print the MIME type
        #   - sort           group lines with similar MIME types
        #   - uniq -c        count all unique combinations of directory and type
        #   - tee            show result(s) on screen and append to file
        #
        # So, the following appends count, directory name and MIME type, like
        #   41 ,./my/directory/name,image/jpg
        #    3 ,./my/directory/name,image/png
        #   12 ,./my/directory/name,video/x-flv
        # to a comma-separated output file:
    
        find "$dirname" -mindepth 1 -maxdepth 1 -type f \
            -exec echo -n ",$dirname," \; -exec file -b --mime-type "{}" \; \
           | sort | uniq -c | tee -a folders-and-types.csv
    done
    
    echo "Found the following MIME types:"
    cut -d , -f 3 folders-and-types.csv | sort | uniq
    
    echo "Found images and videos in the following subdirectories:"
    grep ",image\|,video" folders-and-types.csv
    

    To get a list including the file names, one could filter the file types right away, when sure about the MIME types that should be included:

    find . -type d | while read dir; do 
        # The following appends the file path and MIME type, like
        #   ./my/directory/name/favicon.ico: image/x-ico; charset=binary
        #   ./my/directory/name/test.jpg: image/jpg
        #   ./my/directory/name/test.me: image/png
        #   ./my/directory/name/test.temp: video/x-flv
        # to the output file:
        find "$dir" -mindepth 1 -maxdepth 1 -type f \
            -exec file --mime-type "{}" \; \
            | grep ": audio\|: image\|: video" | tee -a all-media-files.txt
    done
    

    Both approaches need a very long time to complete, and will give you a very long list. But I think it's the only reliable way on non-Windows machines, and when you've been using odd file name extensions.

    On Linux, something similar will work. On Windows, this would require using something like Cygwin or GnuWin, or booting into Linux using a Live CD.

    Beware that you might also be interested in application/zip and similar MIME types, or even application/octet-stream for unknown file types.

    Arjan

    Posted 2011-09-04T20:00:00.763

    Reputation: 29 084

    0

    First, I recommend that you follow the advice about using an image manager to find all your pictures and talk to her about the images you like.

    Second, you should enable separate user accounts for both yourself and her. This will ensure that your stuff will stay yours and her stuff will stay hers. Store all your pics and whatnot somewhere in your directories and you won't have to worry about anyone stumbling across anything with a bit of heat.

    CyberSkull

    Posted 2011-09-04T20:00:00.763

    Reputation: 1 386

    If all media was in the user directory, I'd guess the OP could have found it? – Arjan – 2011-09-09T09:45:13.463

    @arjan That wasn't my point. My suggestion is what to do after the hard drive has been cleaned.

    Setting up user accounts ensures that going forward after cleaning the drive everyone will keep theirs stuff separate, reducing the likelihood of sensitive, private or embarrassing files being seen by other users. – CyberSkull – 2011-09-09T10:16:25.997

    -1

    Forget the content of just some files: this site is for superusers and if your files are disorganized that's a big problem, too. :) You need to get it all organized. If you're on Windows, try a program like WinDirStat to get a sense of where different filetypes are located, how you're using space, etc.

    If you're on Linux, try simple command line tools like find. For instance, you can look for the most common file extensions via

    find . -type f -printf "%f\n" | cut -f 2- -d "." | sort | uniq -c | sort -nr | head -n 30

    Or you can ignore certain file types:

    find . -type f -printf "%f\n" | grep -iv dll | cut -f 2- -d "." | sort | uniq -c | sort -nr | head -n 30

    To find the assortment per subdirectory:

    find . -type f -iname "*.jpg" | cut -f 2 -d "/" | sort | uniq -c | sort -nr | head

    Anyway, take the time to get all your stuff organized. You're trying to make a good overall impression here. (And don't forget to clean your bathroom and fridge! Your bachelor days are OVER. Congrats.)

    Iterator

    Posted 2011-09-04T20:00:00.763

    Reputation: 140

    ... right and you get all images/videos. – Sathyajith Bhat – 2011-09-07T05:11:20.790

    Precisely. It is unfortunate people here don't understand precision and recall. Maybe this question should be moved to a more appropriate SE site. – Iterator – 2011-09-07T10:23:53.093

    And what other site would be more appropriate? – Simon Sheehan – 2011-09-09T20:13:27.063