How to get around command line limitation for "Send To" app?

  • Thread starter Thread starter Greg Arnold
  • Start date Start date
G

Greg Arnold

I have created a "Send To" application that allows users to rename
files. The user selects files in Windows Explorer, right clicks and
selects Send To > File Renamer. The problem is when a large number of
files are selected, the app gives an error that says "Windows cannot
access the specified device, path or file".

I am currently testing on Windows XP. I have been able to reproduce the
problem with an "empty" command line application in both C# and C++.
Several "Send To" applications by Microsoft don't appear to have this
problem. For example, Send To > Mail Recipient for MS Outlook Express.

It is my suspicion the problem is related to the total length of
characters being passed as arguments on the command line to the
application. Any ideas on how to get around this problem?
 
Nobody else has run into this problem? It is very easy to reproduce:

1) Create any application using VS.NET - I used an empty C# console app
2) Create shortcut to the app in C:\Documents and
Settings\<User>\SendTo\
3) Select many files in Windows Explorer (like 100)
4) Right-click and choose Send To > YourApp

You will get the error message. Sending that same list of files to
"Mail Recipient" for example (Send To > Mail Recipient) does not cause
the problem.
 
Hello, Greg!

I have the same problem as you describe and have no clue how to get around
it too.

Did you solve your problem?
 
Unfortunately I have not yet found a solution to this problem. Maybe
these new messages will attract some attention. Anyone???
 
Back
Top