>>>Is there a limit as to the number of characters that can be sent using
>the RUN command? I ran PKZIP with the ! command by passing a 123 character
>string and it worked fine. If I use a 161 chracter string, however, I get
>a RUN|! Command Failed Error. I can copy and paste this string to WIN NT's
>RUN and it works fine. If this is a limitation, is there a work around?
>Yeah, I've tried that. That makes a 129 character string. If I move PkZip
>to the root of a drive(so I don't have to call the whole path), that lowers
>the number to 120 with the @ and that works. So the magic number seems to
>be between 123 and 129. I wanted to keep PKzip with my archived files and
>not the application's directory, but I may not have a choice.
The limit could be the DOS command line length, which is 127 or 128. A
good workaround could be to generate a batch file like this:
set text to zipit.bat
set text on
\\<
>
\cd <>
\Pkzip <> <>
\cd <>
set text off
set text to
=winexec(curd()+"zipit.bat")
If your current directory name is too long, you can replace the
\cd <<set("dire")>>
line with cascading approach to your directory:
\cd \
cdir=curd()
for i=1 to words(cdir,"\")
\cd <<wordnum(cdir,i,"\")>>
endfor
If your directory contains spaces, you may have to add quotes
\cd "<>"
.Signature
{
margin-top: 12px;
color: #666666;
}
.Signature a
{
color: #666666;
}