I want to make a script open the CMD and then enter a path:
import pyautogui as pag
pag.hotkey('win','r')
pag.typewrite('cmd')
pag.press('enter')
pag.typewrite('C:\Users\XY\AppData\')
that doesn't work. So, I tried this:
import pyautogui as pag
pag.hotkey('win','r')
pag.typewrite('cmd')
pag.press('enter')
pag.typewrite('C:\\Users\\huba5_000\\AppData\\')
However, this entered C:?Users?XY?AppData?
What I want it to enter is C:\Users\XY\AppData\
. Do you know what I should write instead of '\\' ?
Thank you in advance!