Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run Command
Message
From
08/11/1997 09:35:21
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
 
To
05/11/1997 16:03:48
Edward Crawford
City Facilities Management
Glasgow, United Kingdom
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Miscellaneous
Thread ID:
00058462
Message ID:
00059065
Views:
32
>>>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; }

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform