Hi No, this code works from outside MEGA too (MEGA must be running, if it is not the case this call will launch MEGA and display the connection dialog). If you want to build a batch application it is better for you to use the MegaApplication class, you can run your application in a separate windows session to make sur no MEGA instance is running. This function is documented in the javadoc: getRoot MegaRoot getRoot(java.lang.String password) Any code using this function should give the password of the current connected user. If the password is not given, a message appears in the MEGA session and the connected user can refused the external connection failing the program execution. From the 6.1 release, if there is no session already opened, the connection dialog is displayed. This functionality may be deactivate using the SetOpenToken function. Parameters: password - Returns: an access to the current repository.
... View more