I have a dictionary created from a .txt file that contains desktop links. I need these links to be plugged in to a powershell command. However when I use '%s' % my_data[key]
I get extra backslashes and therefore powershell will not process the command because it has no idea what to look for, how do I remove extra backslashes?
['powershell.exe', "$sh = New-Object -COM WScript.Shell\n$sh.CreateShortcut('C:\\Users\\johns\\desktop\\python\\Survey+Update\\testing this shared.lnk\n').TargetPath"]