9/6/2023 0 Comments Windows shortcuts filetype pdf![]() Note, that browser setting has to be done after explorer was restarted, this is why the 2s delay. If you have to press one key immediately after another, the keys are separated by a comma (,). If a shortcut requires pressing two or more keys at the same time, this topic separates the keys with a plus sign (+). Keys for other layouts might not correspond exactly to the keys on a US keyboard. SetDefaultBrowser.exe chrome > LogFile.txtĮcho %DATE%-%TIME%: SetDefaultBrowser is finnished. These shortcuts refer to the US keyboard layout. Then enhance the above "SetDefaults.bat" as follows: offĬd D:\tools\totalcmd\Tools\SysBackupBcdBootUSBFormatPart\SetDefaults\Įcho %DATE%-%TIME%: Killing explorer. Optional: to set also the default browser, download "SetDefaultBrowser.exe" and put in in the same folder. Note: there is an open source (in Power Basic) alternative which I didn't tried: However for 4c it is needed as the script is called around 10s after explorer is already running.įor debugging check D:\tools\SetDefaults\LogFile.txt which should have a content like this: -14:06:34.03: SetuserFTA is running Note: explorer killing and restarting is not needed for 4a and 4b (if you have administrator rights) as from there the script is called much earlier. or if you don't have administrator rights, go to "C:\Users\Your.Name\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup\" and create a shortcut "SetDefaults.lnk" pointing to "D:\tools\SetDefaults\SetDefaults.bat" or, also if you have administrator rights, from start menu type and open gpedit.msc -> Local Computer Policy -> User Configuration -> Windows Settings -> Scripts (Logon/Logoff) -> Logon -> select Add then set:Ĥc. if you have administrator rights, copy the bat file into C:\WINDOWS\System32\GroupPolicy\User\Scripts\LogonĤb. Setup the "SetDefaults.bat" script to be called at logon in one of the following 3 ways:Ĥa. SetuserFTA.exe my_config.txt > LogFile.txtĮcho %DATE%-%TIME%: SetuserFTA is finnished. In the same folder ("D:\tools\SetDefaults\") create a bat file "SetDefaults.bat" that offĮcho %DATE%-%TIME%: SetuserFTA is running > LogFile.txt. ![]() ![]() ![]() In the same folder ("D:\tools\SetDefaults\") create a text file named "my_config.txt" that contains needed associations, in this example: pdf to Okular and txt to Notepad++: What I did find to work as admin or non-admin user was "SetUserFTA.exe" as per instructions below:ĭownload "SetUserFTA.exe" and put it in a folder, example "D:\tools\SetDefaults\". Unfortunately above answers are obsoleted and don't work anymore with Windows 10 18xx or 19xx. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |