-1
os.system("cd C:\Users\Adarshkrdubay\AppData\Local\Programs\BurpSuiteCommunity")

File "c:\adarshkrdubay\Exp\Exp-1.py", line 99 os.system("cd r'C:\Users\Adarshkrdubay\AppData\Local\Programs\BurpSuiteCommunity'") ^ SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 7-8: truncated \UXXXXXXXX escape

  • Does this answer your question? [Why do I get a SyntaxError for a Unicode escape in my file path?](https://stackoverflow.com/questions/18084554/why-do-i-get-a-syntaxerror-for-a-unicode-escape-in-my-file-path) – mkrieger1 Jun 17 '22 at 09:36

1 Answers1

1

You will need to use a raw string.

Raw strings: r"cd C:\Users\rest\of\path"

blackbrandt
  • 2,010
  • 1
  • 15
  • 32