0

This expression is not valid: sw.WriteLine("$destination=[Environment]::GetFolderPath("Startup")")

I put a comma and $ symbol between ")") but it didn't work. Help Please!

1 Answer 1

2

You need to escape the quotes:

sw.WriteLine("$destination=[Environment]::GetFolderPath(""Startup"")")
1
  • Glad to help. Feel free to mark that as the answer if it is what you needed. Aug 14, 2013 at 17:37

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.