Hello there,
I want to create a txt in system32, but I want to do that using an environment variable.
I want to use an environment variable instead of this:
Because many pc's don't have their %SYSTEMDRIVE% in C:
So, which would be the correct form?
Thank you
I want to create a txt in system32, but I want to do that using an environment variable.
I want to use an environment variable instead of this:
Code:
file = open("C:\\Windows\\system32\\asdfasdf.txt","w")
So, which would be the correct form?
Thank you
Comment