But if it is legitimate file that you probably password protected and then forgot the password, then there are many softwares available that employ methods like dictionary attack, brute force etc to try guessing the password.
Brute force might for sure give you the password but then the time required depends on the complexity and length of the password. These softwares i think are capable of guessing like 1,00,000 (or more depending on processing power of your machine) passwords per second or so.