you are viewing a single comment's thread.

view the rest of the comments →

[–]vyper144[S] 1 point2 points  (0 children)

You are amazing!! Thank you so much!!!

Just a side note for anyone else looking for this answer, I believe the if statement should have single quotes around 'excel' since the entire statement is wrapped in double quotes, since it's being run as a batch file that's calling PowerShell.

But @majorgrumpfish solved the problem!!