Hello,
what is the type/model of your switch ?
Below is a generic document describing how to restore flash on Catalyst switches:
Recovering Catalyst Fixed Configuration Switches from a Corrupted or Missing Image
http://www.cisco.com/c/en/us/support/docs/switches/catalyst-2950-series-switches/41845-192.html