Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
FileTypeRegister No effect
#1
Hi,

With the following code, there is no effect after execution

Using the following link function, the execution can be successful
https://github.com/DanysysTeam/PS-SFTA
 
Code:
Copy      Help
$e = "C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2022\PowerShell Studio.exe"
Register-FTA -ProgramPath $e -Extension .ps1 -Icon "$e, 0"


Macro Macro12
Code:
Copy      Help
str e="C:\Program Files\SAPIEN Technologies, Inc\PowerShell Studio 2022\PowerShell Studio.exe"
FileTypeRegister "ps1" "ps" "Powershell File Editer" F"{e},0" F"{e} ''%1''"
#2
There are various other settings that override settings made by FileTypeRegister.

1. A file type can be registered for all users or/and for current user. FileTypeRegister registers for all users only. I guess the current user registration takes over.

2. UserChoice: https://stackoverflow.com/questions/2681...pplication

3. Maybe more, I don't know.
#3
Thank you for your help, 

The problem is solved, precede it with the following line of code

QM is simpler and more effective than other solutions on search engines Smile
 
Code:
Copy      Help
FileTypeUnregister "ps1"


Forum Jump:


Users browsing this thread: 1 Guest(s)