Menu

#3 Cube.Bat should contain %* vs. %1 %2 %3 %4 %5

v1.0_(example)
open
nobody
None
7
2004-04-11
2004-04-11
No

Problem:
Dos batch files support %1, %2, and so to represent
each command-line parameter sent to the batch file in
question. Thankfully there is also a %* which avoids
the lengthy and impossible task of guessing exactly how
many command-line parameters the user will apply.
Cube.bat currently employs the guessing game method by
supporting only %1 - %5.

Please replace the current cube.bat's
contents(cube_2003_12_23.zip):
bin\cube.exe -w1024 -h768 %1 %2 %3 %4 %5

with:
bin\cube.exe -w1024 -h768 %*

Improvements:
1. All parameters will be caught
2. Faster startup times (minescule)
3. Smaller file size (minescule)

Thanks,
Christian Blackburn

Discussion

  • Christian Blackburn

    • priority: 5 --> 7
     
  • Wouter van Oortmerssen

    Logged In: YES
    user_id=882246

    not a big deal, but fixed it anyway

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.