Hello Daniel
You can find the answer to your quesiton in the following topic:
sen2cor
If you want to run your directly in the command window:
- Type
cmd
in the search field and choosecmd.exe
- Type e.q. L2A_Process --resolution 20 C:<path to your S2 main directory> and klick Enter.
If you would like to use it in a python script (e.g. if you have multiple files you need to process), then you could add the following prompts into your script:
import os
cmd = 'L2A_Process --resolution 20 C:/S2/S2A_OPER_PRD_M..._20151211T084342'
os.system(cmd)
If you wish, then I could provide you with a script.
I hope this helps.
Cheers,
Andreas