Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: st: Forcing absolute file paths in output
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
Subject
Re: st: Forcing absolute file paths in output
Date
Wed, 14 Aug 2013 11:35:48 +0100
Good fix. Long-term members may find some small irony in my failing to
check what was true for my OS was true for all. Mea Macima culpa, as
the Romans didn't say.
Nick
[email protected]
On 14 August 2013 11:31, Phil Clayton <[email protected]> wrote:
> Be careful - this depends on the operating system.
>
> In Windows -cd- without arguments is the same as -pwd-, but in Mac & Unix -cd- without arguments changes the working directory to the home directory. See -help cd-
>
> The safer advice is therefore to use -pwd- here.
>
> Phil
>
> On 14/08/2013, at 6:54 PM, Nick Cox <[email protected]> wrote:
>
>> For anyone thinking ??? know that -cd- without arguments saves a
>> character over -pwd-.
>> Nick
>> [email protected]
>>
>>
>> On 14 August 2013 09:32, Seed, Paul <[email protected]> wrote:
>>> A quick and easy to remember way of getting the info into your output is :
>>>
>>> *******************
>>> cd
>>> graph export mygraph.pdf
>>> *******************
>>>
>>> This will take two lines of output to show exactly
>>> where the graph is stored.
>>>
>>>
>>> On Tue, Aug 13, 2013 at 10:13 AM, Nick Cox <[email protected]> wrote:
>>>> I think the short answer is No.
>>>>
>>>> But you could always spell out the full path within your command.
>>>>
>>>> I guess you don't want to do that, but the only alternative I can
>>>> think of is writing a program to emit a local macro that cuts down on
>>>> typing.
>>>>
>>>> Nick
>>>> [email protected]
>>>>
>>>>
>>>> On 13 August 2013 16:03, Martin Rune Hansen <[email protected]> wrote:
>>>>> Dear all
>>>>>
>>>>> Is there a way to force Stata to always write abolute file paths in
>>>>> the output panel? For exsample, if I export a graph I want Stata to
>>>>> output
>>>>>
>>>>> (file C:\Users\myuser\Documents\Graph.pdf written in PDF format)
>>>>>
>>>>> instead of
>>>>>
>>>>> (file Graph.pdf written in PDF format)
>>>>>
>>>>> I realize that I can make Stat write the full path if I myself specify
>>>>> an absolute path, but that is not what I am after. I want to be able
>>>>> to type commands using relative paths and have Stata respond with the
>>>>> absolute path. Is this possible? Thank you in advance.
>>>>>
>>>>> Regards,
>>>>> Martin Hansen
>>>
>>> *
>>> * For searches and help try:
>>> * http://www.stata.com/help.cgi?search
>>> * http://www.stata.com/support/faqs/resources/statalist-faq/
>>> * http://www.ats.ucla.edu/stat/stata/
>> *
>> * For searches and help try:
>> * http://www.stata.com/help.cgi?search
>> * http://www.stata.com/support/faqs/resources/statalist-faq/
>> * http://www.ats.ucla.edu/stat/stata/
>
>
> *
> * For searches and help try:
> * http://www.stata.com/help.cgi?search
> * http://www.stata.com/support/faqs/resources/statalist-faq/
> * http://www.ats.ucla.edu/stat/stata/
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/faqs/resources/statalist-faq/
* http://www.ats.ucla.edu/stat/stata/