Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
此表达式无效:sw.WriteLine("$destination=[Environment]::GetFolderPath("Startup")")
sw.WriteLine("$destination=[Environment]::GetFolderPath("Startup")")
我在 ")") 之间放了一个逗号和 $ 符号,但它不起作用。请帮忙!
您需要转义引号:
sw.WriteLine("$destination=[Environment]::GetFolderPath(""Startup"")")