Mathematica 9 is now available
Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2005
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2005

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

Search the Archive

SetDirectory, Import

  • To: mathgroup at smc.vnet.net
  • Subject: [mg55813] SetDirectory, Import
  • From: pshoplifter at yahoo.com (pshoplifter)
  • Date: Thu, 7 Apr 2005 05:09:52 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

I had a number of files to Import which at first had the whole (long)
path in the filename. This worked fine, but looks ugly, so I decided
to use SetDirectory to set it once and then have the filenames in the
import commands without the path.

It could not find the files so I started testing:

SetDirectory["d:\\blahblah"];
Directory[]
FileNames["*.png"]
Import["image.png"]
Directory[]
FileNames["*.png"]

The output is:

d:\blahblah
{image.png}
File not found
<some other directory from mathematica>
{}

Does the Import command change the current directory?
Any help appreciated.


  • Prev by Date: Using "%" command with .NET/Link in the MathKernelApp Demo
  • Next by Date: Re: DirectedInfinity[1 + I], why does it get replaced by (1 + I)/(sqrt(2) ?
  • Previous by thread: Re: Using "%" command with .NET/Link in the MathKernelApp Demo
  • Next by thread: Bug in Archive Searches