I want to save some files generated by my program to "<drive_name>\Users\<computer_name>\Documents" folder.
I need the drive and computer name. What would be a neat way to achieve this. I usually get the current working directory and just split the string to get that info but there has to be a better way right?
Userfolder and the computer name. This might help: stackoverflow.com/questions/4906977/… and learn.microsoft.com/en-us/windows/deployment/usmt/…os.environ['COMPUTERNAME']. stackoverflow.com/questions/799767/…