1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

How to? For with /Nj problem...

Discussion in 'Support' started by mathewsdw, Mar 2, 2012.

  1. mathewsdw

    Joined:
    May 24, 2010
    Messages:
    855
    Likes Received:
    0
    I want to do a simple "For ... /Nj ..." command, and I can not get it to work. As always:
    Code:
    [Z:\]For /D /R . %D in (*) Do (Echo "%D")
    "Z:\Demo"
    "Z:\DemoII"
    "Z:\Development"
    "Z:\DoIt"
    "Z:\File-Type Data"
    "Z:\FreePlus"
    "Z:\Google Voice Call Logs"
    "Z:\Histories"
    "Z:\IrpMan"
    "Z:\JPSoft"
    "Z:\JustCount"
    "Z:\Level1"
    "Z:\LinksII"
    "Z:\On-D"
    ^C
    
    Same thing with "/Nj" parameter:
    Code:
    [Z:\]For /D /Nj /R . %D in (*) Do (Echo "%D")
    TCC: (Sys) The parameter is incorrect.
     "j"
    Usage : FOR [/A:[[-][+]rhsdaecjot] /D /F ["options"] /H /I"text" /L /Nj /O:[-]adegn
    rstu /R [path] /T"..." /W] %var IN ([@]set | start, step, end) [DO] command ...
    
    So the question is simple: What am I doing wrong/misunderstanding?

    - Dan
     
  2. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,277
    Likes Received:
    38
    Weird; it seems the J must be uppercase!
     
  3. mathewsdw

    Joined:
    May 24, 2010
    Messages:
    855
    Likes Received:
    0
    Thank you, Charles!!!! Boy, I wouldn't have thought to try that particularly since this is one of the oddball cases where the docs show something in lowercase!!!:) (And Rex, either the docs or the program (about 2 minutes to change at least after you've found where that particular code is - although it's not worth an "update" for that alone) or both should be changed.).

    - Dan
     
  4. Charles Dye

    Charles Dye Super Moderator
    Staff Member

    Joined:
    May 20, 2008
    Messages:
    3,277
    Likes Received:
    38
    Build 50 is case-insensitive, as I would expect.
     

Share This Page