Run or Runwait with Second Parameter String 125 Characters or More Getting Truncated
Keywords: truncated
Question:
I'm using Runwait, and my second parameter string is 125 characters. The same
runwait statement works fine in Windows 95, but gets truncated and gives me
an error message about the number of parameters are wrong. How can I fix this?
Answer:
Windows 3.1 has system limitation of around 125-127 characters, so if you're
using the Run or RunWait function, that limitation would apply to the count
of all the characters in the first parmeter PLUS all the characters in the
second parameter.
If you're exceeding that limitation, there are a couple ways to try to get
around it:
- In the first parameter, if you're specifying both the EXE plus the path
to the EXE, do a Dirchange to the directory where the EXE resides first,
THEN only specify the EXE name in the first parameter string.
- If you were exceeding the Windows 95 limitation, you could try
using the FileNameShort for the EXE name, to save an extra few characters.
- If you want to get really drastic, and you're near the limitation,
you COULD rename the EXE to something like "A.EXE" to squeeze a little more in.
Article ID: W13102
Filename: Run or Runwait and Second Parameter 125 or more Chars.txt
File Created: 1999:04:15:16:51:46
Last Updated: 1999:04:15:16:51:46