Results 1 to 3 of 3
  1. #1
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253

    [HELP] File Type Deleting

    Ok Lets say i got a folder with all different file types in it..
    ect. jpg, png, dll, exe, ini, blah blah blah

    And i wanted to just delete the files that are .jpg..
    Can someone point me in the right direction of doing so

  2. #2
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Shouldn't be too hard.

    FindFirstFile Function (Windows)
    FindNextFile Function (Windows)
    WIN32_FIND_DATA Structure (Windows)

    The file name is the member 'cFileName' in the WIN32_FIND_DATA structure. From there you can just do a bit of string manipulation to delete the files you want.

  3. The Following User Says Thank You to Void For This Useful Post:

    whit (02-28-2011)

  4. #3
    whit's Avatar
    Join Date
    Jan 2010
    Gender
    male
    Posts
    7,159
    Reputation
    490
    Thanks
    2,253
    Thank ya much void