Re: Conversion of pathnames from Unix/Linux to Windows operating system
Posted by dscho on Jul 18, 2007; 12:29pm
URL: http://imagej.273.s1.nabble.com/Conversion-of-pathnames-from-Unix-Linux-to-Windows-operating-system-tp3698836p3698837.html
Hi,
On Wed, 18 Jul 2007, Jean Schuermans wrote:
> How should I change the pathnames?
>
> i.e. How will the following example of a path name change:
>
> OutDir="/home/user/Perso/RootScanning/Out2/";
That depends on the system. AFAIK on "modern" Windowses such as 2000 and
upwards, it is no problem to use the forward slash "/" instead of the
backward slash "\" that DOS used (to distance itself from Unix).
But the home directory changes from OS to OS, even from Windows to
Windows. The safest method would be to use the macro function
"getDirectory()" with the parameter "home", I guess. So, your macro
should read like this:
OutDir = getDirectory("home") + "Perso/RootScanning/Out2/";
Hth,
Dscho