M471 with Relative Directory?
-
Is there a way I can avoid specifying the entire path on M471 if the directory is in the same directory as the macro file I'm running?
-
@donstauffer
with a little luck you can use "./ or ../", where ./ is the current directory and ../ is the parent directory. -
@o_lampe I tried that.
-
Error: Failed to rename file or directory ./Test1 to ./Test3
-
RRF has no concept of a "current directory", that's why you need the path. However, I could change it so that you don't need to provide the path in the new name if it is the same as in the old name.
-
@dc42 That would be convenient, but wouldn't solve my current challenge. I'm trying to put a macro in a directory which may have been renamed, and have the macro rename a subdirectory. The macro doesn't know if the directory it's in has been renamed. It only knows about subdirectories and what it wants to do about them.
-
@dc42 It would be convenient to be able to run a macro using M98 with only a filename and have it assume it's in the same folder as the macro invoking M98. That is, a system of macros in a single folder could all call one another with just their filenames.