Which program am I running?

Thank you tf68

  • Crafty!
  • I was hoping someone would come up with something like that
  • and as with mine it works when ANY program with serial output is loaded in the IDE

The only problem is it outputs the entire address of the file
i.e.... C:\Documents and Settings\David\My Documents\Arduino- - My Arduino sketches\DataLogger\Data_logger_button-v2\Data_logger_button-v2.ino
Is there any way of reducing the output to just the file name?

mrburnette
Although I agree with the need to structure the storage of information and code I am afraid I don't see what you are trying to say. My problem is that I am developing so many programs on so many Arduinos that I sometimes forget which one is loaded where! tf68's crafty answer is just what I needed.