MathGroup Archive 2013

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

Search the Archive

Comment about SetDirectory[]

  • To: mathgroup at smc.vnet.net
  • Subject: [mg130815] Comment about SetDirectory[]
  • From: "McHale, Paul" <Paul.McHale at excelitas.com>
  • Date: Sat, 18 May 2013 02:38:46 -0400 (EDT)
  • Delivered-to: l-mathgroup@mail-archive0.wolfram.com
  • Delivered-to: l-mathgroup@wolfram.com
  • Delivered-to: mathgroup-outx@smc.vnet.net
  • Delivered-to: mathgroup-newsendx@smc.vnet.net

I have often wondered whether to use:

SetDirectory[NotebookDirectory[]]
Export["TestResultTime.txt", mTimeDiff, "Table"]

or

Export[NotebookDirectory[] <>  "TestResultTime.txt", mTimeDiff, "Table"]

I have left Mathematica open for 2 days as it was running a very long test. Maybe something became corrupted.  The first method did not work.  It appears SetDirectory[] simply stopped functioning.  Personally, I think the second method is better since it is atomic in nature.  It doesn't depend on any stateful settings.

Has anyone else had this issue?

Thanks,

Paul McHale  |  Electrical Engineer, Energetic Systems   |  Excelitas Technologies Corp.

Office: +1 937.865.3004   |  Fax: +1 937.865.5170
1100 Vanguard Boulevard, Miamisburg, OH  45342-0312
Paul.McHale at Excelitas.com
www.excelitas.com




  • Prev by Date: Re: Work on Basic Mathematica Stephen!
  • Next by Date: Re: writing real numeric data to file in scientific form
  • Previous by thread: Re: 2x2 determinant bug in math 9.0.0.0
  • Next by thread: Re: Comment about SetDirectory[]