Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Cut and Paste
#4
If you're asking on how to get the AppData directory, I showed right here:
"C:/Users/<Username>/AppData/my_script"

All you must do is replace <Username> with your account's Username. However, I believe you can use os.getenv("APPDATA") to retrieve the path to the AppData directory.

import os
print(os.getenv("APPDATA"))
Oshadha likes this post
Reply


Messages In This Thread
Cut and Paste - by Oshadha - Jan-19-2021, 09:39 AM
RE: Cut and Paste - by spaceraiders - Jan-19-2021, 11:15 PM
RE: Cut and Paste - by Oshadha - Jan-20-2021, 06:47 AM
RE: Cut and Paste - by spaceraiders - Jan-20-2021, 04:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  What script to paste folders thenewcoder 1 664 Nov-29-2023, 09:40 AM
Last Post: Pedroski55
  Please help me [copy and paste file from src to dst] midomarc 2 1,010 Nov-24-2022, 10:13 PM
Last Post: midomarc
  ImageTk Paste KDog 14 6,912 Jun-27-2021, 11:07 AM
Last Post: KDog
  copy paste file and re-name it asheru93 1 2,370 May-24-2019, 10:43 AM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020