0

How do I make python copy a jpeg to the desktop?

import shutil
src = ('1.3.jpg')
dst = ('tEST/nicholas')
count = 1
while count < 10000000000:
    shutil.copyfile(src, dst + str(count) + ".jpg")
    count += 1

This is what I have so far but I want to change the dst folder into the desktop I'm using windows 7

1 Answers1

2

Just define absolute adress of your desktop.

dst = 'C:\\Users\\[name of your account]\\myfile.txt'
Slepice1
  • 23
  • 5