Home › Forums › KX Academy › Loading a directory path to IPC › Re: Loading a directory path to IPC
-
You can perform the “cd” command over IPC, but as this will change the current directory in the process, you should be sure that this won’t cause problems, as any code that depends on the current value of “cd” might break.
Also if you are sending the command as a string to the handle, you have to escape any embedded quotes:
h"system "cd /my/directory/f1""
Or you could use a lambda with a dummy parameter instead:
h({system "cd /my/directory/f1"};::)