Search Result

Collapse
2 results in 0.0014 seconds.
Keywords
Members
Tags
systemdrive
  •  

  • How to use Environment Variables to set location of file in Python?

    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:
    Code:
    file = open("C:\\Windows\\system32\\asdfasdf.txt","w")
    Because many pc's don't have their %SYSTEMDRIVE% in C:

    So, which would be the correct form?
    Thank you
    See more | Go to post

  • seeyuh
    started a topic %SystemDrive% folder

    %SystemDrive% folder

    Huh? My son was playing Neopets on the internet. When I came back to the computer, a folder named '%SystemDrive%' had appeared on my Desktop. Where should it go, what's the default location for this file? D'ya think he dragged it from somewhere by accident, or what? I've looked around the internet, got the impression it's a "page file"? But not enough info to give me the confidence to just move it. This is on an HP laptop running XP home,...
    See more | Go to post
Working...