On a PC, you have to specifically "order" it to do a disk check. And within that window, there are options to just check files and/or to check the disk surface itself. Look it up yourself to find out how.
On Macs, who knows? You did not specify what type of "computer".