Posted by
Stein Rørvik on
Dec 21, 2015; 2:18pm
URL: http://imagej.273.s1.nabble.com/ImageJ-does-not-work-from-the-command-line-if-image-name-contains-parenthesis-tp5015265p5015269.html
I also tried to remove the space but keep the parenthesis, it still does not work. So it is a parenthesis issue:
"C:\Program Files\ImageJ\ImageJ.exe" -macro " C:\MyPath\Test Macro.ijm" " C:\MyPath\MyImage(2).tif"
The files I need to access are very large stacks of µCT files; hundreds of thousands of slices, several hundred gigabytes large so copying them to my feeble laptop with an SSD to rename them there is not an option. I can physically go to the computer they are stored and rename them there in a batch process, but the string inside the parenthesis contains important sample info, and the alternative characters {} and [] are not allowed by the CT software so I try to avoid that option.
Stein
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Stein Rørvik
Sent: 21. desember 2015 15:17
To:
[hidden email]
Subject: Re: ImageJ does not work from the command line if image name contains parenthesis
It is a parenthesis problem. It works fine with spaces.
I haven't tested all other possible special characters but in general ImageJ is quite flexible in what it accepts in filenames.
I just tested with space in filename
"C:\Program Files\ImageJ\ImageJ.exe" -macro " C:\MyPath \Test Macro.ijm" "C:\MyPath\MyImage 2.tif"
and it works fine.
Stein
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Gabriel Landini
Sent: 21. desember 2015 15:08
To:
[hidden email]
Subject: Re: ImageJ does not work from the command line if image name contains parenthesis
On Monday 21 Dec 2015 13:56:59 Stein Rørvik wrote:
> > This does not work:
> "C:\Program Files\ImageJ\ImageJ.exe" -macro "C:\MyPath\Test Macro.ijm"
> "C:\MyPath\MyImage (2).tif"
Is that a parenthesis issue or is it the spaces in the name?
There are often problems and unexpected behaviour when using files that have spaces.
I do not know if it is a bug, but in the mean time, maybe you can create a Win batch script that first copies the file from the read-only system into a writeable location and then runs ImageJ on that location.
Cheers
Gabriel
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html