more command returns “Too many arguments in command line”












2















I have a Windows 10 machine where running the more command returns "Too many arguments in command line." if I pass any filename, whether the file exists or not.



So far I've only seen this on one Windows 10 Home 64-bit x64 system.



Running where more returns C:WindowsSystem32more.com as I would expect.



Is this behavior of more expected? I've never encountered this on previous versions of Windows.










share|improve this question




















  • 1





    Certainly not expected. more cowbell correctly displays the file cowbell on my Windows 10 Pro 64-bit system.

    – dave
    Oct 26 '18 at 22:09











  • please include a paste from the command line showing this

    – barlop
    Oct 27 '18 at 3:36











  • According to ms docs (docs.microsoft.com/en-us/windows-server/administration/…) you need to add > after more if you use it without flags, have you tried so?

    – Máté Juhász
    Oct 27 '18 at 4:37
















2















I have a Windows 10 machine where running the more command returns "Too many arguments in command line." if I pass any filename, whether the file exists or not.



So far I've only seen this on one Windows 10 Home 64-bit x64 system.



Running where more returns C:WindowsSystem32more.com as I would expect.



Is this behavior of more expected? I've never encountered this on previous versions of Windows.










share|improve this question




















  • 1





    Certainly not expected. more cowbell correctly displays the file cowbell on my Windows 10 Pro 64-bit system.

    – dave
    Oct 26 '18 at 22:09











  • please include a paste from the command line showing this

    – barlop
    Oct 27 '18 at 3:36











  • According to ms docs (docs.microsoft.com/en-us/windows-server/administration/…) you need to add > after more if you use it without flags, have you tried so?

    – Máté Juhász
    Oct 27 '18 at 4:37














2












2








2


1






I have a Windows 10 machine where running the more command returns "Too many arguments in command line." if I pass any filename, whether the file exists or not.



So far I've only seen this on one Windows 10 Home 64-bit x64 system.



Running where more returns C:WindowsSystem32more.com as I would expect.



Is this behavior of more expected? I've never encountered this on previous versions of Windows.










share|improve this question
















I have a Windows 10 machine where running the more command returns "Too many arguments in command line." if I pass any filename, whether the file exists or not.



So far I've only seen this on one Windows 10 Home 64-bit x64 system.



Running where more returns C:WindowsSystem32more.com as I would expect.



Is this behavior of more expected? I've never encountered this on previous versions of Windows.







windows






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Oct 27 '18 at 3:28







MrEricSir

















asked Oct 26 '18 at 20:39









MrEricSirMrEricSir

1345




1345








  • 1





    Certainly not expected. more cowbell correctly displays the file cowbell on my Windows 10 Pro 64-bit system.

    – dave
    Oct 26 '18 at 22:09











  • please include a paste from the command line showing this

    – barlop
    Oct 27 '18 at 3:36











  • According to ms docs (docs.microsoft.com/en-us/windows-server/administration/…) you need to add > after more if you use it without flags, have you tried so?

    – Máté Juhász
    Oct 27 '18 at 4:37














  • 1





    Certainly not expected. more cowbell correctly displays the file cowbell on my Windows 10 Pro 64-bit system.

    – dave
    Oct 26 '18 at 22:09











  • please include a paste from the command line showing this

    – barlop
    Oct 27 '18 at 3:36











  • According to ms docs (docs.microsoft.com/en-us/windows-server/administration/…) you need to add > after more if you use it without flags, have you tried so?

    – Máté Juhász
    Oct 27 '18 at 4:37








1




1





Certainly not expected. more cowbell correctly displays the file cowbell on my Windows 10 Pro 64-bit system.

– dave
Oct 26 '18 at 22:09





Certainly not expected. more cowbell correctly displays the file cowbell on my Windows 10 Pro 64-bit system.

– dave
Oct 26 '18 at 22:09













please include a paste from the command line showing this

– barlop
Oct 27 '18 at 3:36





please include a paste from the command line showing this

– barlop
Oct 27 '18 at 3:36













According to ms docs (docs.microsoft.com/en-us/windows-server/administration/…) you need to add > after more if you use it without flags, have you tried so?

– Máté Juhász
Oct 27 '18 at 4:37





According to ms docs (docs.microsoft.com/en-us/windows-server/administration/…) you need to add > after more if you use it without flags, have you tried so?

– Máté Juhász
Oct 27 '18 at 4:37










3 Answers
3






active

oldest

votes


















4














I just reproduced your problem on my own system. I definitely see what you're talking about... but I never noticed it before, because I always use more following a pipe (|), like this:



type filename.txt | more


That command works just fine on my system.






share|improve this answer

































    2














    I can reproduce this, too, on Windows 10 Enterprise (version 1803, build 17134.407). I can confirm Joel Coehoorn's and MrEricSir's solutions work. FWIW, I liked the /E option because it made more behave more like the UNIX flavor.



    My solution was to use input redirection:



    more < cowbell.txt





    share|improve this answer































      2














      I can't find this documented anywhere but I found a workaround. In this particular case more works as expected if extended features are enabled with the /E flag.



      For example, the following will display example.txt:



      more /E example.txt





      share|improve this answer

























        Your Answer








        StackExchange.ready(function() {
        var channelOptions = {
        tags: "".split(" "),
        id: "3"
        };
        initTagRenderer("".split(" "), "".split(" "), channelOptions);

        StackExchange.using("externalEditor", function() {
        // Have to fire editor after snippets, if snippets enabled
        if (StackExchange.settings.snippets.snippetsEnabled) {
        StackExchange.using("snippets", function() {
        createEditor();
        });
        }
        else {
        createEditor();
        }
        });

        function createEditor() {
        StackExchange.prepareEditor({
        heartbeatType: 'answer',
        autoActivateHeartbeat: false,
        convertImagesToLinks: true,
        noModals: true,
        showLowRepImageUploadWarning: true,
        reputationToPostImages: 10,
        bindNavPrevention: true,
        postfix: "",
        imageUploader: {
        brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
        contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
        allowUrls: true
        },
        onDemand: true,
        discardSelector: ".discard-answer"
        ,immediatelyShowMarkdownHelp:true
        });


        }
        });














        draft saved

        draft discarded


















        StackExchange.ready(
        function () {
        StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1370353%2fmore-command-returns-too-many-arguments-in-command-line%23new-answer', 'question_page');
        }
        );

        Post as a guest















        Required, but never shown

























        3 Answers
        3






        active

        oldest

        votes








        3 Answers
        3






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        4














        I just reproduced your problem on my own system. I definitely see what you're talking about... but I never noticed it before, because I always use more following a pipe (|), like this:



        type filename.txt | more


        That command works just fine on my system.






        share|improve this answer






























          4














          I just reproduced your problem on my own system. I definitely see what you're talking about... but I never noticed it before, because I always use more following a pipe (|), like this:



          type filename.txt | more


          That command works just fine on my system.






          share|improve this answer




























            4












            4








            4







            I just reproduced your problem on my own system. I definitely see what you're talking about... but I never noticed it before, because I always use more following a pipe (|), like this:



            type filename.txt | more


            That command works just fine on my system.






            share|improve this answer















            I just reproduced your problem on my own system. I definitely see what you're talking about... but I never noticed it before, because I always use more following a pipe (|), like this:



            type filename.txt | more


            That command works just fine on my system.







            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Oct 26 '18 at 20:58

























            answered Oct 26 '18 at 20:44









            Joel CoehoornJoel Coehoorn

            24.2k971119




            24.2k971119

























                2














                I can reproduce this, too, on Windows 10 Enterprise (version 1803, build 17134.407). I can confirm Joel Coehoorn's and MrEricSir's solutions work. FWIW, I liked the /E option because it made more behave more like the UNIX flavor.



                My solution was to use input redirection:



                more < cowbell.txt





                share|improve this answer




























                  2














                  I can reproduce this, too, on Windows 10 Enterprise (version 1803, build 17134.407). I can confirm Joel Coehoorn's and MrEricSir's solutions work. FWIW, I liked the /E option because it made more behave more like the UNIX flavor.



                  My solution was to use input redirection:



                  more < cowbell.txt





                  share|improve this answer


























                    2












                    2








                    2







                    I can reproduce this, too, on Windows 10 Enterprise (version 1803, build 17134.407). I can confirm Joel Coehoorn's and MrEricSir's solutions work. FWIW, I liked the /E option because it made more behave more like the UNIX flavor.



                    My solution was to use input redirection:



                    more < cowbell.txt





                    share|improve this answer













                    I can reproduce this, too, on Windows 10 Enterprise (version 1803, build 17134.407). I can confirm Joel Coehoorn's and MrEricSir's solutions work. FWIW, I liked the /E option because it made more behave more like the UNIX flavor.



                    My solution was to use input redirection:



                    more < cowbell.txt






                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered Dec 29 '18 at 15:46









                    Armadillo JimArmadillo Jim

                    1213




                    1213























                        2














                        I can't find this documented anywhere but I found a workaround. In this particular case more works as expected if extended features are enabled with the /E flag.



                        For example, the following will display example.txt:



                        more /E example.txt





                        share|improve this answer






























                          2














                          I can't find this documented anywhere but I found a workaround. In this particular case more works as expected if extended features are enabled with the /E flag.



                          For example, the following will display example.txt:



                          more /E example.txt





                          share|improve this answer




























                            2












                            2








                            2







                            I can't find this documented anywhere but I found a workaround. In this particular case more works as expected if extended features are enabled with the /E flag.



                            For example, the following will display example.txt:



                            more /E example.txt





                            share|improve this answer















                            I can't find this documented anywhere but I found a workaround. In this particular case more works as expected if extended features are enabled with the /E flag.



                            For example, the following will display example.txt:



                            more /E example.txt






                            share|improve this answer














                            share|improve this answer



                            share|improve this answer








                            edited Jan 9 at 5:09

























                            answered Oct 26 '18 at 20:39









                            MrEricSirMrEricSir

                            1345




                            1345






























                                draft saved

                                draft discarded




















































                                Thanks for contributing an answer to Super User!


                                • Please be sure to answer the question. Provide details and share your research!

                                But avoid



                                • Asking for help, clarification, or responding to other answers.

                                • Making statements based on opinion; back them up with references or personal experience.


                                To learn more, see our tips on writing great answers.




                                draft saved


                                draft discarded














                                StackExchange.ready(
                                function () {
                                StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1370353%2fmore-command-returns-too-many-arguments-in-command-line%23new-answer', 'question_page');
                                }
                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                Probability when a professor distributes a quiz and homework assignment to a class of n students.

                                Aardman Animations

                                Are they similar matrix