본문 바로가기

Windows Server

CMD prompt에 입력할수 있는 글자수

259 글자가 넘으면 '입력한 글자가 너무 깁니다'라는 오류나신다고함.

 

1. XP에서는 최대 8191글자(Charater)까지 입력가능하며, 2000과 NT 4.0에서는 최대 2047글자까지 Command prompt상에서 입력 가능함 확인.

    Command prompt (Cmd. exe) command-line string limitation

     - http://support.microsoft.com/default.aspx?scid=kb;en-us;830473

On computers running Microsoft Windows XP or later, the maximum length of the string that you can use at the command prompt is 8191 characters. On computers running Microsoft Windows 2000 or Windows NT 4.0, the maximum length of the string that you can use at the command prompt is 2047 characters.

 

2. dir명령을사용해서 dir c:\windows\system32 c:\windows\system32 ......을 배치파일로 만들어서 test진행시에

    8191 글자까지 실행이 가능함 확인함.

 

    Files, Folders, or Path Names with More Than 259 Characters Are Not Displayed

    - http://support.microsoft.com/default.aspx?scid=kb;en-us;210631

The longest file name or path that Windows Explorer can accept is 259 characters, including the drive letter and "\" characters.

- Windows Explorer에서 받아들일수 있는 파일, 폴더이름또는 path이름은 드라이브 문자또는 '\' 글자를 포함해서 최대 259자임.

 

VISTA와 Windows 2008은?