$InputFileName

$InputFileName
is a global variable whose value is the absolute file name of the input file from which input to Mathematica is currently being sought.

DetailsDetails

New in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »