Page 5 of 5 FirstFirst ... 345
  1.    23 Aug 2017 #40
    Join Date : Aug 2017
    Posts : 1
    WIN10

    Quote Originally Posted by questorfla View Post

    Help!
    I was able to solve most of the problems using a VBS script
    The original wasn't my work. It was made for Chrome but I modified it to add Acrobat
    The last problem is Outlook. Due to naming conventions outlook%202016 will not work
    but it has to represent "outlook 2016" in the script in order to work properly
    Any ideas on how to fix this? I am sure it is easy and i will find it eventually but....
    here is the part that works. I would think that this can be added to for as many programs as needed is done properly
    enter copied code for each program after the line
    WshShell.SendKeys " "
    I am sure you can see where it repeats for adobe.
    By the way, Adobe MUST come after Chrome in order for things to work right.
    Many Thanks to the original posted on Super User :
    https://superuser.com/questions/1069...ser-windows-10

    Code:
    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run "%windir%\system32\control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?
    pszAppName=google%20chrome"
    WScript.Sleep 1200
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys " "
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys " "
    Set WshShell = WScript.CreateObject("WScript.Shell")
    WshShell.Run "%windir%\system32\control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?
    pszAppName=adobe%20acrobat%20reader%20dc"
    WScript.Sleep 1200
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys " "
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys "{TAB}"
    WshShell.SendKeys " "
    WScript.Quit

    I just went down this exact path
    The appRegName is specified in HKEY_LOCAL_MACHINE (orHKEY_CURRENT_USER)\SOFTWARE\RegisteredApplications

    Outlook 2016 is registered as outlook.application.2016 (I initially thought the %202016 was causing issues.. but percent-encoding only accepts 2 characters as input.. so the app name had to be incorrect.)

    The command you want to add for outlook 2016 will be WshShell.Run "%windir%\system32\control.exe /name Microsoft.DefaultPrograms /page pageDefaultProgram\pageAdvancedSettings?pszAppName=outlook.application.16"
      My ComputerSystem Spec
  2.    1 Week Ago #41
    Join Date : Dec 2017
    Belgrade
    Posts : 1
    Windows 10 LTSB

    Quote Originally Posted by jgt1942 View Post
    How do you restore the defaults for an existing user?
    ^
    Restoring defaults is very useful, because the XML file(s) list all sorts of different settings, such as:
    Code:
      <Association Identifier=".htm" ProgId="FirefoxHTML" ApplicationName="Firefox" />
      <Association Identifier=".html" ProgId="FirefoxHTML" ApplicationName="Firefox" />
    Code:
      <Association Identifier="http" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" />
       <Association Identifier="https" ProgId="FirefoxURL-308046B0AF4A39CB" ApplicationName="Firefox" />
    &
    For a novice, it can be difficult to understand why ProgId is labeled different, in all sorts of ways, heh. :-/

    P.S. Btw., Windows Environment Variables (for some, strange, reason!) are an elusive bunch. After much searching, I was finally able to come up with a couple of URLs @
    Code:
    https://en.wikipedia.org/wiki/Environment_variable
    Code:
    https://docs.microsoft.com/en-us/windows/deployment/usmt/usmt-recognized-environment-variables
      My ComputerSystem Spec

 
Page 5 of 5 FirstFirst ... 345


Similar Threads
Tutorial Category
Customization Restore Default File Type Associations in Windows 10
How to Restore Default Apps for File Extension Type Associations in Windows 10 A default app is the program that Windows uses automatically when you open a particular file type or protocol. This tutorial will show you how to restore the...
Tutorials
When plugging iphone in to import pictures. Difference from Windows 8
In Windows 8, I would plug my phone in and it would display all the pictures on the phone and highlight the new ones. I would then click IMPORT. Boom. Done. With Windows 10 it doesnt seem as straight forward. I plug my phone in and sometimes...
Software and Apps
No way to import bookmarks in Spartan?
Can't find an option to import bookmarks in Spartan. Please let me know if I am missing it. Thanks.
Browsers and Email
No way to import bookmarks?
In the Edge browser is there no way to import bookmarks? They've shown up in Spartan but not this time with 10122. Jim
Browsers and Email
Browsers & Email Import and Export Bookmarks as HTML in Firefox
How to Import and Export Bookmarks via HTML in Firefox This tutorial will show you how to easily export and import your bookmarks in the Mozilla Firefox web browser using HTML files. As well as acting as a backup of your bookmarks this is also...
Tutorials
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd
All times are GMT -5. The time now is 23:33.
Find Us
Twitter Facebook Google+ Ten Forums iOS App Ten Forums Android App



Windows 10 Forums