Powershell scripts not opening in notepad-TC main suspect

Jan 30, 2010
I have just started using Powershell mainly because I need the ability to change affinity in a running program.
Everything is set up correctly with a simple profile in MyDocuments/WindowsPowershell and I have used Set-ExecutionPolicy RemoteSigned.
I have scripts in a separate folder in MyDocuments/Scripts and my Powershell shortcut on desktop opens Powershell in that folder.
Up til now whenever I double clicked on a script it would open in notepad which was OK when I was editing the scripts but suddenly when I double click on a script it is actually running in Powershell. I prefer this as it saves me opening Powershell but just wondering what sort of behaviour would cause this to happen.
The only odd thing I can think of is that I opened Take Command to see if I could run some PS commands from the TC console. After closing TC the behaviour is still persisting.
Jan 30, 2010
My apologies Rex. Your advice is correct. I found another program changed the file associations the previous day.
I am very happy with being able to run the PS scripts without opening PS but I forgot the activity the previous day.
Memory starting to decay (mine).
Similar threads
Thread starter Title Forum Replies Date
CWBillow TCC and TCMD in Powershell Support 6
Joe Caverly PowerShell=No Support 1
EDerH Powershell call from script Support 24
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
Joe Caverly PowerShell Core Support 1
CWBillow PowerShell tab as Admin Support 2
CWBillow TCMD PowerShell Tab elevated Support 6
CWBillow Take Command tab as PowerShell Support 3
vefatica Powershell ... insert vs overstrike Support 2
CWBillow Powershell tab in TCMD? Support 2
Joe Caverly Fixed Displaying Profiles from TCC vs. PowerShell Support 2
Joe Caverly How to use Powershell Profile with PSHELL Support 14
F Powershell call fails with "Scripting Integrator 2016 (PowerShell)" license error Support 9
CWBillow PowerShell Tabs in TCMD Support 11
I v16 Spawning a PowerShell tab Support 3
vefatica "which" in PowerShell invokes TCC? Support 3
electrotype Powershell in Take Command - Customizing colors? Support 4
C Attaching PowerShell changes its colors and makes it hard to read Support 15
T Returning a value from internal Lua scripts to TCC Support 2
A Inconsistent return code for TCC scripts Support 4
M Drag and Drop for .BTM scripts Support 10
rjperrella start /tabna leaves blank windows when running batch scripts Support 10
mikea How to? TCC 15: popup windows; launching Perl scripts Support 10
J TC12 Win7 console, running gawk scripts Support 0
B Saving scripts Support 3
J telnet and scripts Support 2
M Why does HELP keep opening in the background? Support 0
T 64 bit TCCLE appears to crash when opening tcc.exe from within tcc.exe window Support 7
W Opening a new tab takes forever to get the command prompt Support 5
noahcoad How to? Prevent web url from opening after silent install Support 0
vefatica Opening zipfile in explorer? Support 3
p.f.moore One-click way of opening a new tab Support 4
O Problems opening an app in a tab from the toolbar Support 28

Similar threads