Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: What does ctrl+J do in DOS???  (Read 3063 times)

0 Members and 1 Guest are viewing this topic.

qz33

    Topic Starter


    Rookie
    What does ctrl+J do in DOS???
    « on: January 31, 2008, 08:47:12 PM »
    I am trying to figure this out to no avail.   I thought it allowed a command to continue to a new line but perhaps not as I cannot get it to work.  I am also trying ^ in DOSBox and that is not working either.

    Is there a special command or extended command set I need to have loaded?

    Sorry for all this but I cannot figure it out.


    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: What does ctrl+J do in DOS???
    « Reply #1 on: February 02, 2008, 09:19:45 AM »
    As far as I know, there is no continuation character in either the cmd shell program, the command shell program, or in any flavor of DOS.

    There really is no need for one. A user can keep typing until the enter key is pressed. The processor is unconcerned with line wraps.

    This is also true inside an editor. Any attempt to "tidy up" the code is strictly for the user's benefit (readability for instance). The processor "sees" the data as a continuous stream of characters.

     8)
    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    Dusty



      Egghead

    • I could if she would, but she won't so I don't.
    • Thanked: 75
    • Experience: Beginner
    • OS: Windows XP
    Re: What does ctrl+J do in DOS???
    « Reply #2 on: February 02, 2008, 12:13:47 PM »
    I have not found any use for Ctrl+J in any form of Dos.

    In Win XP Home:
    The caret (^) used at the command prompt (cmd.exe) will allow further commands to be entered on a different line e.g. dir ^ <enter> will ask for more on a different line, so that if you enter dir /og/on/p ^ the screen will show:

    C:\>dir /og/on/p ^
    more?

    and the path\filename can be entered after "more?".  If nothing is added after 'more?' and Enter is struck twice the command(s) will be executed on the current directory.

    Using Edit.com to create a batch file allows the use of the caret provided that the Ctrl+p keys are pressed immediately prior to Shift+^ to set the special character, "more?" is not displayed and further commands/parameters can be entered on the following line.

    The above does not appear the be effective using Command.com in XP or when using Edit in DosBox

    « Last Edit: February 02, 2008, 01:44:50 PM by Dusty »
    One good deed is worth more than a year of good intentions.

    qz33

      Topic Starter


      Rookie
      Re: What does ctrl+J do in DOS???
      « Reply #3 on: February 02, 2008, 07:27:13 PM »
      Excellent Responses!


       :o

      Dusty



        Egghead

      • I could if she would, but she won't so I don't.
      • Thanked: 75
      • Experience: Beginner
      • OS: Windows XP
      Re: What does ctrl+J do in DOS???
      « Reply #4 on: February 02, 2008, 11:41:59 PM »
      Qz33 - thank you for your kind comment.

      The max string length when using Cmd.exe in XP is 8191 characters, in Win.2k and NT4 it's 2047 but I did read that by adding something like \\&\ at the start of the string it is extended to 30k+ characters.   Unfortunately I cannot recall which site I read the latter on.  I have no intention of testing the max lengths ;D

      Good luck.

      D.
      One good deed is worth more than a year of good intentions.

      qz33

        Topic Starter


        Rookie
        Re: What does ctrl+J do in DOS???
        « Reply #5 on: February 04, 2008, 11:42:35 AM »
        So many things about DOS are hidden!!!! :-X

         :o >:(