I am working on a VB6 Sp6 program to act as a parser, passing the paths and file names of a group of files dropped on its desktop icon as a delimited string to the import utility of a document management system. When I drop a group of files on the program icon it launches the program, which takes the file paths and names as a series of command line parameters, populating the Command$ variable with them with each one surrounded by double quote characters and separated by spaces. I then use the Replace function to replace the " " character sequence with "?".
The problem I am having is that if the character count of the paths and file names of the dropped files exceeds 2,116 characters the program blows up with the message:
"Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."
Is this a limitation of VB6? If so, is there a way around it?
Thanks in advance for any assistance.
The problem I am having is that if the character count of the paths and file names of the dropped files exceeds 2,116 characters the program blows up with the message:
"Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."
Is this a limitation of VB6? If so, is there a way around it?
Thanks in advance for any assistance.