Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2006

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

Search the Archive

Problems with DirectoryName

  • To: mathgroup at
  • Subject: [mg65659] Problems with DirectoryName
  • From: "Janko Slavic" <janko.slavic at>
  • Date: Wed, 12 Apr 2006 06:00:10 -0400 (EDT)
  • Sender: owner-wri-mathgroup at


I would like to get the directory name out of a full path filename
It seems like the DirectoryName is not working the same with "\\" or

DirectoryName["d:\\temp\\test.txt"] => d:\temp\
DirectoryName["d:/temp/test.txt"] => Blank

I would like the solution to be platform independent.
Any advices are greatly appreciated!

  • Prev by Date: Re: Integral problem
  • Next by Date: Reaction-diffusion PDEs
  • Previous by thread: Re: Windowed standard deviation
  • Next by thread: Re: Problems with DirectoryName