Uploading RAPID file directly to virtual controller?

in RobotStudio
Hello, not sure if this is possible or not but I am trying to create a .RAPID file with a script outside of RobotStudio and then upload the file to the virtual controller, all without interacting with the RS gui. I have poked around the various RS directories and have not yet been able to find a single directory which holds individual RAPID files. If anyone knows if this is possible/how to do it that would be greatly appreciated.
Tagged:
Comments
The name of the files, doesn't corresponds to the actual module names. Instead, they have a number. so you will have to figure out, which file contains which module. probably, by open the files, search for the line "MODULE" and read the the next word.
Not sure if you are able to create a new module this way.
C:\Users\YourUserNameHere\Documents\RobotStudio\Systems
This will still not load it to the virtual controller's operating memory, it will still have to be loaded/unloaded like Soup said.