Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os,platform
- if platform.system() == "Windows":
- if platform.release().lower() == "xp":
- startpath = os.environ['ALLUSERSPROFILE']+'Start Menu\Startup'
- if platform.release() == "7" or "8":
- startpath = os.path.expanduser('~')+'\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup'
- else:
- pass
- else:
- pass
- print startpath
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement