Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8094889
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T20:56:24+00:00 2026-06-05T20:56:24+00:00

Platform: Windows 7, Windows XP Software: DOS I know about command line length limitation

  • 0

Platform: Windows 7, Windows XP
Software: DOS

I know about command line length limitation but I never experienced something like this”.
I have doskey command passing parameters/arguments to vbs script and I have determined that if I try to pass string with spaces which contains more than 6 spaces – everything beyond 6th space gets truncated. Is this known limitation??

Here is how doskey looks like:

set scripts=C:\Windows\Scripts\    
doskey tt=@echo off $t cscript //NoLogo %scripts%tt.vbs %scripts% $1 $2 $t @echo on

Now you can open batch and test it by entering simple string like:

tt + "1 2 3 4 5 6 7 8 9"

And the result will be:

1 2 3 4 5 6

Length doesn’t matter, I can test it with any other string and it will be truncated after 6th space.

Does anybody have idea or knows the solution?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T20:56:25+00:00Added an answer on June 5, 2026 at 8:56 pm

    I actually have no explanation, but a workaround:

    Use simple quotes : it seems double quotes are not considered by doskey (or more probably parsed by cmd) and thus it uses spaces to split values into args.

    I think the 6th space limitation comes from that doskey stops at 9 args (%1-%9) and you reach the limit.
    Your 6 numbers, the + sign, the %scripts% args and the script itself make for 9

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to know, is there any Windows platform disassembler (software) can generate
I run the following code on a Windows platform. The purpose is the know
I would like to develop applications for the Windows platform & at the very
Just curious if I'm creating a shared memory array on Windows platform like so:
On Windows/Linux platform,I as a common computer user,could not nearly find any software written
I've recently bumped into something called IOCP on the windows platform, to be more
I'm developing some cross platform software targeting Mono under Visual Studio and would like
Utility: NMake Platform : Windows 7 I have the following Makefile FILE = $(shell)
I'm just starting out on a cross-platform (Windows, Linux, OS X) C++ project, and
Using unmanaged C++ on a Windows platform, is there a simple way to detect

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.