Closed wrobin68 closed 1 year ago
Hello, If you have Notepad++ Installed You just need to use Set-FTA with Notepad++'s ProgId like this:
powershell -ExecutionPolicy Bypass -command "& { . .\SFTA.ps1; Set-FTA 'Applications\notepad++.exe' '.txt' }"
Regards
Thx for your fast answer. But I get the same error I see that when I click now on a .txt file, the file ask me to chose the program I want to use to open the .txt file. But it doesnt open directly notepad++ and the icon didn't changed.
Regards
Robin
is SFTA.ps1 in a Network Path?
Not in a network path
Windows Version? are you running from Batch file or from a PowerShell file? Are you running in a Remote machine? Where is SFTA.ps1 located at?
Windows 2012r2 from powershell file Local machine c:\temp
what I notice is that It's not getting User-Experience string from C:\Windows\SysWOW64\Shell32.dll
Could you check/test if this function works? https://github.com/DanysysTeam/PS-SFTA/blob/42ac9468a49ef37557024428ca94cca248323c19/SFTA.ps1#L512
or maybe you could send me C:\Windows\SysWOW64\Shell32.dll file to check if it has the User-Experience string.
Okay, I will now go away but I will check that beginning of next week. Thanks for your help :)
Hello,
You can find my shell32.dll files in the following link https://www.grosfichiers.com/gmf8EDiEj7U Regards
Robin
Hello. It seems to be you Shell32.dll has not the User Experience string used in the Hash. Try this version with the string hardcoded.
It would be great If You can tell me the whole Windows Version so I can do more tests.
It's all good now :)
Thanks for your support Fast and clear
Hello,
I'm trying to change .txt association. I want to set notepad++ as default. BTW I tried with notepad and get same error. My error is the following one :
I use the following command : Register-FTA "C:\Program Files (x86)\Notepad++\notepad++.exe" .txt -Icon "C:\Program Files (x86)\Notepad++\notepad++.exe" or Register-FTA "C:\Windows\notepad.exe" .txt -Icon "C:\Windows\notepad.exe"
Can you help me with this ?
Regards
Robin