none
is there any second command that does the same as "mycommand | more " ?

    Question

  • hi friends

    is there any second command that does the same as   "mycommand | more "  ?

    for example is there any simpler method something like "mycommand | *"    to achieve this ?

    ( of course i know that "mycommand | *"    doesn't work , but that was just an example.  i mean can we use something instead of "more" word ?

    thanks a lot

    Wednesday, March 07, 2012 7:57 AM

Answers

  • What exactly do you want do do?


    Grant Ward, a.k.a. Bigteddy

    What's new in Powershell 3.0 (Technet Wiki)

    hi teddy.  i want not to be forced to type in " more " word evety time i need to perform for example "ipconfig /all | more " command.

    i need a simpler command , maybe something like ipconfig /all | * 

    is it possible ?    ;-)

    You can create a batch file called m.bat ("m" for more) that looks like this:

    @echo off
    %*  |  more

    From now on, instead of typing
    ipconfig /all | more
    you type
    m  ipconfig /all

    Make sure to place the batch file into a folder that is mentioned in the %path%.
    Wednesday, March 07, 2012 8:53 AM
  • You can place it in any folder specified in the %path% variable if you want the batch file to be available from everywhere on your system. To view the folders included in %path% type the following in the command prompt:

    echo %path%

    This is will all the folder defined in the path variable.

    • Marked as answer by john.s2011 Thursday, March 08, 2012 4:27 AM
    Wednesday, March 07, 2012 9:34 AM

All replies

  • What exactly do you want do do?

    Grant Ward, a.k.a. Bigteddy

    What's new in Powershell 3.0 (Technet Wiki)

    Wednesday, March 07, 2012 8:05 AM
  • What exactly do you want do do?

    Grant Ward, a.k.a. Bigteddy

    What's new in Powershell 3.0 (Technet Wiki)

    hi teddy.  i want not to be forced to type in " more " word evety time i need to perform for example "ipconfig /all | more " command.

    i need a simpler command , maybe something like ipconfig /all | * 

    is it possible ?    ;-)

    Wednesday, March 07, 2012 8:24 AM
  • What exactly do you want do do?


    Grant Ward, a.k.a. Bigteddy

    What's new in Powershell 3.0 (Technet Wiki)

    hi teddy.  i want not to be forced to type in " more " word evety time i need to perform for example "ipconfig /all | more " command.

    i need a simpler command , maybe something like ipconfig /all | * 

    is it possible ?    ;-)

    You can create a batch file called m.bat ("m" for more) that looks like this:

    @echo off
    %*  |  more

    From now on, instead of typing
    ipconfig /all | more
    you type
    m  ipconfig /all

    Make sure to place the batch file into a folder that is mentioned in the %path%.
    Wednesday, March 07, 2012 8:53 AM
  • What exactly do you want do do?


    Grant Ward, a.k.a. Bigteddy

    What's new in Powershell 3.0 (Technet Wiki)

    hi teddy.  i want not to be forced to type in " more " word evety time i need to perform for example "ipconfig /all | more " command.

    i need a simpler command , maybe something like ipconfig /all | * 

    is it possible ?    ;-)

    You can create a batch file called m.bat ("m" for more) that looks like this:

    @echo off
    %*  |  more

    From now on, instead of typing
    ipconfig /all | more
    you type
    m  ipconfig /all

    hi pegasus. thanks for the solution. but where should i place this batch file to work ?  in system 32 and Windir ?
    Wednesday, March 07, 2012 8:55 AM
  • hi pegasus. thanks for the solution. but where should i place this batch file to work ?  in system 32 and Windir ?
    It does not matter since both folders are included in the path.
    Wednesday, March 07, 2012 9:01 AM
  • You can place it in any folder specified in the %path% variable if you want the batch file to be available from everywhere on your system. To view the folders included in %path% type the following in the command prompt:

    echo %path%

    This is will all the folder defined in the path variable.

    • Marked as answer by john.s2011 Thursday, March 08, 2012 4:27 AM
    Wednesday, March 07, 2012 9:34 AM
  • You can place it in any folder specified in the %path% variable if you want the batch file to be available from everywhere on your system. To view the folders included in %path% type the following in the command prompt:

    echo %path%

    This is will all the folder defined in the path variable.

    nice explanation jaap. thanks a lot for that
    Thursday, March 08, 2012 4:28 AM