Jongskie M.
Technical User
Dear Gents,
Below script creates a previous folder based on the date.
1. The question is how to go or open that folder automatically after it was been created.
2. How to create two folders with different drive or path based on the script below.
path = "G:" "H:"
current_time = yesterday.strftime('%Y\%b %Y\%Y-%m-%d')
command = "mkdir {0}".format(current_time)
os.chdir(path)
os.system(command)
os.startfile(path) <== this only open the root folder not from the newly created one.
thanks.
Below script creates a previous folder based on the date.
1. The question is how to go or open that folder automatically after it was been created.
2. How to create two folders with different drive or path based on the script below.
path = "G:" "H:"
current_time = yesterday.strftime('%Y\%b %Y\%Y-%m-%d')
command = "mkdir {0}".format(current_time)
os.chdir(path)
os.system(command)
os.startfile(path) <== this only open the root folder not from the newly created one.
thanks.