MathGroup Archive 2012

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: What does NotebookDirectory[] do for .m files?


On Friday, April 13, 2012 5:08:32 AM UTC-4, Jesse Perla wrote:
> NotebookDirectory[] correctly gives the location of the notebook for my .nb files, but I cannot seem to find an equivalent for my .m files?  Is there another approach?

In version 8, $InputFileName. In earlier versions there's nothing as reliable, but it can be approximated with FindFile[$Input].

Vince Virgilio



  • Prev by Date: Re: Integrating an InterpolatingFunction times another function
  • Next by Date: Re: Integrating an InterpolatingFunction times another function
  • Previous by thread: What does NotebookDirectory[] do for .m files?
  • Next by thread: Re: What does NotebookDirectory[] do for .m files?