More discovery ...

It appears that the max length of a command line generated by dragging
and dropping files on a shortcut is 255 chars. This is based on my tests
with VFP 9 SP1 under XP Pro. This appears to be a limitation of the
Windows shell's drag-and-drop support and not VFP. I have not been able
to confirm this 255 char limitation via Google other than a few web
pages that insinuate that shell drag and drop supports a max of
approximately 10 files.

According to
<http://blogs.msdn.com/oldnewthing/archive/2003/12/10/56028.aspx> the
max length of a CMD.EXE command line is 8192 chars (2048 if launched via
Win32 Shellexec or 32767 if launched via Win32 CreateProcess)

Using CMD.EXE I can pass up to 128 files to a VFP executable. (The VFP
specific limitation of 128 command line parameters described in earlier
posts in this thread).

Conclusion: If you're building applications that accept files via drag
and drop on a shortcut link, you will be limited to a very small number
of files.

Question: Any ideas if its possible to expand the max length of the
shell's drag-and-drop command line length to a value greater than 255?

Thanks,
Malcolm


_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to