At some point, I created a startup file for cmd and powershell. Ending in .ps1
I think. I must have a typo in it or something because I now get this error in powershell when trying to run commands:
& was unexpected at this time.
Also, CMD won't open. And if I try to run it from powershell I get the error.
I can't remember where that darn file is. I've looked all over for it, including all of the places listed here: https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_profiles?view=powershell-7.2#the-profile-files
$profile
isn't the answer.
Any ideas for where it could be and how to find it?
cmd.exe
to tell it to run "vanilla" and not run startup files.cmd.exe \d
and appeared to get a command prompt. But whenever I run a command I still get that error. So maybe it's not a startup thing. What would cause cmd to run a certain file EVERY time it runs a command?