Login  Register

Re: Output_Files not Saved in Subfolder when the Subfolder contains Super-subfolders

Posted by Glen MacDonald-2 on Apr 01, 2017; 3:29pm
URL: http://imagej.273.s1.nabble.com/Re-Output-Files-not-Saved-in-Subfolder-when-the-Subfolder-contains-Super-subfolders-tp5018423p5018435.html

GP,
Avoid the need to track the OS specific file separator character  and the need escape it by adding this variable:
sep=File.separator;
https://imagej.nih.gov/ij/developer/macro/functions.html#S

Glen MacDonald
Digital Microscopy Center
Box 357923
University of Washington
Seattle, WA 98195-7923  USA
(206) 616-4156
[hidden email]








> On Mar 31, 2017, at 4:31 AM, GP <[hidden email]> wrote:
>
> Hie!
>
> From Windows command line only ''\\" in the pathname works.
> Ex: dir = "D:\\path\\to\\folder\\for\\saving\\the\\world\\"
>
> Best Regards,
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/Re-Output-Files-not-Saved-in-Subfolder-when-the-Subfolder-contains-Super-subfolders-tp5018423p5018426.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html