Hard Code Folder Reference in Command Line
Posted by burt46 on Jul 21, 2016; 5:41pm
URL: http://imagej.273.s1.nabble.com/Hard-Code-Folder-Reference-in-Command-Line-tp5016919.html
Hi
I have a IJ macro that when it opens it asks me to select the source folder where i have a bunch of images that the macro cycles through and processes.
Is there a way to select this folder directly in the command line, such as change:
start "C:\Program Files\ImageJ" imagej.exe -macro folderprocess.txt
to something like.
start "C:\Program Files\ImageJ" imagej.exe -macro folderprocess.txt "C:\Test1"
I know i can add the folder reference into the macro itself, but this means i have to change the macro each time if i change the folder destination. Basically, i am trying to automate the call function to the macro via commandline as i can dynamically create the "C:\Test1" location reference. I cant do this within an IJ macro.
Any advice greatly appreciated.