Add Completion message and delay before close of window
This commit is contained in:
parent
bf94b471b7
commit
60458b5920
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
import os
|
import os
|
||||||
import shutil
|
import shutil
|
||||||
|
import time
|
||||||
|
|
||||||
# Set the source and destination directories (Replace \ with / before imputting)
|
# Set the source and destination directories (Replace \ with / before imputting)
|
||||||
source = 'C:/Users/User/AppData/Local/Packages/Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy/LocalState/Assets' #Replace "User" with your username
|
source = 'C:/Users/User/AppData/Local/Packages/Microsoft.Windows.ContentDeliveryManager_cw5n1h2txyewy/LocalState/Assets' #Replace "User" with your username
|
||||||
|
@ -17,3 +18,8 @@ for file_name in os.listdir(source):
|
||||||
for filename in os.listdir(destination):
|
for filename in os.listdir(destination):
|
||||||
os.rename(destination + filename, destination + filename + '.jpg')
|
os.rename(destination + filename, destination + filename + '.jpg')
|
||||||
|
|
||||||
|
# Print message stating code has executed sucsessfully
|
||||||
|
print ("Task completed succsessfully, please look at destination folder for results.")
|
||||||
|
|
||||||
|
# Delay closing of window by 5 seconds
|
||||||
|
time.sleep(5)
|
||||||
|
|
Loading…
Reference in New Issue