Can arduino automatically name a variable the same as the sketch?

Pretty straight forward question: Is there a way to have a string automatically contain the name of the sketch at the time of compile and upload? I am looking for a way to track the code that I have through my SD card, without having to go in and change a string name in the sketch each time. Thanks for any help!

Is there a way to have a string automatically contain the name of the sketch at the time of compile and upload?

There is a FILE object #defined, that you might be interested in.

Thanks PaulS, that is exactly what I was looking for.