File Associations and Parameter Passing RRS feed

  • Question

  • In Windows 98, I used to be able to set a file association to an extension type AND have windows pass the name of the file I double clicked on to the program as a command line argument. I can find no way of doing this in Windows 10.

    For Example: I have a program called WebLines; it creates and uses files with an extension of .WEBL. In Win98, I could open Windows Explorer, locate a .WEBL file, right-click on it, and tell windows to open it with WebLines.exe. I can also do this in Windows 10, BUT, in Win98 I could also go to the File Types tab, locate the .WEBL extension, right-click and select Properties, and edit the Open With field to read something like "WebLines.exe %1"; this would tell Windows to pass the name of a .WEBL file as a command line parameter to my program WebLines, which could then parse the command line and open the file. I find no way to do this in Windows 10. Other programs are able to do this (WordPad, NotePad, WinAmp, FireFox, etc.), but I can't. Why not???
    • Moved by Richard MuellerMVP Tuesday, January 24, 2017 5:20 PM Not a TechNet Wiki question
    Monday, January 23, 2017 6:57 PM


  • You have asked in the wrong forum. This forum is for questions and discussions about the TechNet Wiki. I believe you should ask your question in a Microsoft Answers/Community forum dedicated to Windows 10, such as this one:


    Search for similar questions, or click on "Participate" and select "Ask a Question". The Answers/Community forums are on a different platform, so we cannot move this question there. You will need to ask your question again. Sorry.

    Richard Mueller - MVP Enterprise Mobility (Identity and Access)

    Tuesday, January 24, 2017 3:47 PM