By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,467 Members | 1,605 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,467 IT Pros & Developers. It's quick & easy.

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

P: n/a
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?

Nov 16 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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.

Nov 16 '05 #2

P: n/a
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?

"Greg Arnold" <gr**@arnoldtimes.com> wrote in message
news:11*********************@z14g2000cwz.googlegro ups.com...
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.

Nov 16 '05 #3

P: n/a
Unfortunately I have not yet found a solution to this problem. Maybe
these new messages will attract some attention. Anyone???

Nov 16 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.