Re: How to find out which directory a .m file is loaded from?
- To: mathgroup at smc.vnet.net
- Subject: [mg38953] Re: How to find out which directory a .m file is loaded from?
- From: "John Harper" <jharper at cisco.com>
- Date: Tue, 21 Jan 2003 07:39:51 -0500 (EST)
- Organization: Cisco Systems Inc.
- References: <b0ddnb$i9e$1@smc.vnet.net> <b0g28i$mrk$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
Sure, but my question was not how *I* can find out, but how the .m file
can find out and set things up accordingly. Thanks anyway...
John
"Steven Shippee" <slshippee at attbi.com> wrote in message
news:b0g28i$mrk$1 at smc.vnet.net...
> Your "*.m" file normally is saved and resides in what ever specific
> directory your notebook was opened and resides in. One way to tell is to
go
> to open the notebook in question and do a "file" "save as" and you should
be
> able to tell what location you are working in from the displayed path
> information.
>
> shippee at jcs.mil
>
> "John Harper" <jharper at cisco.com> wrote in message
> news:b0ddnb$i9e$1 at smc.vnet.net...
> > I'd like, in a .m file for a package, to be able to know what directory
> > the .m file is being loaded from, so I can search in the same place
> > (or subdirectories) for related files. I've looked through everything
> > to do with directories I can find in The Book, but I can't find anything
> > that looks as though it would help.
> >
> > Anyone know how to do this? Thanks in advance...
> >
> > John
> >
> >
> >
>
>