Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33

Thread: Changing A File Extension

  1. #11
    Antionline Herpetologist
    Join Date
    Aug 2001
    Posts
    1,165
    It turns out, there is way to do what CybertecOne was asking. Under *NIX, just type file filename. Yes, there is a command called file. I know it's a bad name for the command, but I didn't write it. Under Windows you have two choices:
    1. Download the zip file attached below. It contains a Windows port of the file command. No, it's not a virus. No, I don't have the source code. And no, I don't know where I got it from. Download it or not, it's your choice.
    2. Download filealyzer from PepiMK software (the same guy(s) that make(s) Spybot S&D). Use this link to get there: http://www.safer-networking.org/en/f...zer/index.html

    Cheers,
    cgkanchi

    PS: Forgive the smart-ass nature of this post, I'm just having a bad day.
    Buy the Snakes of India book, support research and education (sorry the website has been discontinued)
    My blog: http://biology000.blogspot.com

  2. #12
    Senior Member
    Join Date
    Jan 2003
    Posts
    3,915
    Hey Hey,


    Since cgkanchi forgot to add the download link at the end of his post.. Here's the page you can grab the file from -- http://gnuwin32.sourceforge.net/packages/file.htm. Check out more of the gnuwin32 files if you are interested in *nix software ported to Windows.. it's often quite handy to have around.

    Peace,
    HT

  3. #13
    Keeping The Balance CybertecOne's Avatar
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    660
    hey, i wasnt asking, just trying to decypher what the original post was..... but thanks anyways... seems like a useful tool.
    "Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction."
    - Albert Einstein

  4. #14
    Senior Member
    Join Date
    Jul 2002
    Posts
    339
    in otherwords, if i change matrix.zip to matrix.mpg - obviously windows media player wont open it,
    Otoh if i change matrix.mpg to matrix.zip, then drop it to wmp, it will open it. Yes, it will complain for the first time for the unusual extension, but if i tell it that it's ok, it will happily open the .zip file, detect that it is actually an .mpg file, then treat it as one. You guys should know better than me about this...

    Peace always,
    <jdenny>
    Always listen to experts. They\'ll tell you what can\'t be done and why. Then go and do it. -- Robert Heinlein
    I\'m basically a very lazy person who likes to get credit for things other people actually do. -- Linus Torvalds


  5. #15
    Keeping The Balance CybertecOne's Avatar
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    660
    thats because its not really a zip file and is INDEED an mpg file......
    "Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction."
    - Albert Einstein

  6. #16
    Keeping The Balance CybertecOne's Avatar
    Join Date
    Aug 2004
    Location
    Australia
    Posts
    660
    furthermore,

    that is the only way i thought possible of trying to work out what type of file it is... (that is of course without looking at the hex etc) was to trial and error the file into the right program, which is why that tool that cgkanchi submitted looks interesting ...
    "Any intelligent fool can make things bigger and more complex... It takes a touch of genius --- and a lot of courage to move in the opposite direction."
    - Albert Einstein

  7. #17
    Leftie Linux Lover the_JinX's Avatar
    Join Date
    Nov 2001
    Location
    Beverwijk Netherlands
    Posts
    2,534
    Any ZIP file start with the letters PK (just open in notepad or better yet a hex-editor)

    PK stands for Phil Katz, the origional "inventor" of the PKZIP algorithm..
    ASCII stupid question, get a stupid ANSI.
    When in Russia, pet a PETSCII.

    Get your ass over to SLAYRadio the best station for C64 Remixes !

  8. #18
    Senior Member
    Join Date
    Jan 2004
    Posts
    195
    I don't know about other file extensions but I changed .dat extension(VCD format ) to .mpg and voila i can still watch the movie but when i changed it to .123 and then burned it on CD as data and after copying back to comp changed it back to .dat ,..... it was corrupt and invalid data format even with .dat ext.

    phew.... it accidentaly happened (in second case) but it did corrupted file.
    It\'s all about sense of power.

  9. #19
    Senior Member
    Join Date
    Jul 2003
    Posts
    813
    Originally posted here by rider_royal
    I don't know about other file extensions but I changed .dat extension(VCD format ) to .mpg and voila i can still watch the movie
    I never got it why the VCD/SVCD formats convert to .dat, because the files are and will always remain MPGs. Probably some backward compatibility thing? Anyway in your case I believe the burning software might've 'tweaked' your file for a bit if the extension was recognized in some way. You could do more trial and error starting out from .txt renamed to .exe or something.. The other way aswell... and see what you get.
    /\\

  10. #20
    It turns out, there is way to do what CybertecOne was asking. Under *NIX, just type file filename. Yes, there is a command called file. I know it's a bad name for the command, but I didn't write it.
    Someone should port it to windows.
    I use it all the time, especially with some of them mp3 download sites, they rename mp3s or zips to anything from .xls to .doc to .whatever.

    A quick 'file' and a renaming and i am happy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •