SendTo menu - sending to a program.

G

Guest

I want to add a sendto menu item that sends to a program.
How does the program know what object was right clicked and sent to it?
Is it passed as a parameter?
 
J

JCO

I'm not sure if I'm answering your question or not but I use my "SendTo"
quite a bit. I've added a Graphics Folder that contains a shortcut to all
of my graphic type applications ie Paint, PhotoEditor, PaintShop, LVPro...
and so forth. I've also added a folder named "Editor". In that folder I
put a shortcut to Word, Excel, NotePad, WordPad.

I've also put a shortcut to other computers such as my son & daughters
desktop. That way, I can right click on a file and send it to their
desktop. My kids have the same option on their SendTo... to send any file
to a shared folder on my computer named PublicWrite. That's all I share to
them...sort of like an Inbox.

The issue is that you have to know what applications can be used and with
what file. You can't send a parameter that I know of. I've been using my
SendTo for many years and finally MS got wise and created the OpenWith
option that does a similar task.

Are you wanting help to set up your SendTo?
 
G

Guest

What folder the object goes to needs to be dynamic based on certain parts of
the path of the object that was right clicked. I was hoping to do that by
using program logic. But I'm wondering if that is possible? The help file
says you can sendto a program.
 
J

JCO

Lets make sure we are talking about the same thing. If you set your
computer to show hidden files/folders, then the "SendTo" folder will be
visible. It should be at the following path:

C:\Documents and Settings\Your Logon ID\SendTo
All you need to do is put a shortcut that represents the target. Example;
copy a shortcut from your Start Menu such as NotePad. Once you've done
this, Notepad will show up in the menu when you right mouse click on a file
(such as a text file).
 
G

Guest

So if I put my program at C:\Documents and Settings\My Logon ID\SendTo, it
will show up on the right click menu. Then when you right click and select
the program I'm guessing it can access the path for the object that was right
clicked on by looking at parameters. What I wanted to do is have the program
determine the actual folder the object ends up being copied to. But I'm not
clear about whether the program needs to take care of the copying itself or
not. Have you seen something like this being done?
 
J

JCO

Yes if you put a shortcut in that folder, it will show up when you right
mouse click and select the SendTo Folder.

I guess I don't understand why (or I'm missing something). What is the
scenario that makes you want to do this. With high-tech Windows, as
compared to the old DOS days, links are designed to be associated with an
application. That is why, these days, you simply double click a shortcut
and the proper application is launched. In my case, as I described with the
graphics, it gives me the option of using 2 or 3 different Graphic
Applications to accomplish my task.
 
K

Keith Miller MVP

Yes, a program shortcut in the sendto folder receives the full path to the
object that was sent to it.

Save the following as a .vbs script & then place a shortcut to the script in
your sendto folder.

Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
WScript.Echo objArgs(I)
Next
 
J

JCO

Yes if you put a shortcut in that folder, it will show up when you right
mouse click and select the SendTo Folder.

I guess I don't understand why (or I'm missing something). What is the
scenario that makes you want to do this. With high-tech Windows, as
compared to the old DOS days, links are designed to be associated with an
application. That is why, these days, you simply double click a shortcut
and the proper application is launched. In my case, as I described with the
graphics, it gives me the option of using 2 or 3 different Graphic
Applications to accomplish my task.
 
J

JCO

Where does the .vbs go (in any path folder... ie system)?
I'm just curious as to what this does? Does this resolve the fact that
some of the links in the SendTo, don't display? I've noticed that some of
mine don't, but never had time to investigate as to why.


Keith Miller MVP said:
Yes, a program shortcut in the sendto folder receives the full path to the
object that was sent to it.

Save the following as a .vbs script & then place a shortcut to the script
in your sendto folder.

Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
WScript.Echo objArgs(I)
Next


--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]

BlueJay said:
I want to add a sendto menu item that sends to a program.
How does the program know what object was right clicked and sent to it?
Is it passed as a parameter?
 
K

Keith Miller MVP

It's just a simple example that is designed to show you the argument that
explorer passes to a program via sendto.


--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]

JCO said:
Where does the .vbs go (in any path folder... ie system)?
I'm just curious as to what this does? Does this resolve the fact that
some of the links in the SendTo, don't display? I've noticed that some of
mine don't, but never had time to investigate as to why.


Keith Miller MVP said:
Yes, a program shortcut in the sendto folder receives the full path to
the object that was sent to it.

Save the following as a .vbs script & then place a shortcut to the script
in your sendto folder.

Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
WScript.Echo objArgs(I)
Next


--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]

BlueJay said:
I want to add a sendto menu item that sends to a program.
How does the program know what object was right clicked and sent to it?
Is it passed as a parameter?
 
J

JCO

Okay.. Guess I was making to much out of it. I see that now.
I still have some shortcuts that don't show up. Not sure why that happens.

Keith Miller MVP said:
It's just a simple example that is designed to show you the argument that
explorer passes to a program via sendto.


--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]

JCO said:
Where does the .vbs go (in any path folder... ie system)?
I'm just curious as to what this does? Does this resolve the fact that
some of the links in the SendTo, don't display? I've noticed that some
of mine don't, but never had time to investigate as to why.


Keith Miller MVP said:
Yes, a program shortcut in the sendto folder receives the full path to
the object that was sent to it.

Save the following as a .vbs script & then place a shortcut to the
script in your sendto folder.

Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
WScript.Echo objArgs(I)
Next


--
Good Luck,

Keith
Microsoft MVP [Windows XP Shell/User]

I want to add a sendto menu item that sends to a program.
How does the program know what object was right clicked and sent to it?
Is it passed as a parameter?
 
B

Big Rich Soprano

Yes, a program shortcut in the sendto folder receives the full path to the
object that was sent to it.

Save the following as a .vbs script & then place a shortcut to the script in
your sendto folder.

Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
WScript.Echo objArgs(I)
Next


Here's one for ya...

How would i get rid of the send to floppy drive link? What registry
entry controls the send to functions?
 
R

Ramesh, MS-MVP

Only option is to "hide" the drive altogether. You may use Tweak UI for this purpose. Note that the drive-letter will be hidden in Explorer environment, as well. The drive-letter is accessible anyway.

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows Shell/User]
Windows® Troubleshooting http://www.winhelponline.com


Big Rich Soprano said:
Yes, a program shortcut in the sendto folder receives the full path to the
object that was sent to it.

Save the following as a .vbs script & then place a shortcut to the script in
your sendto folder.

Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
WScript.Echo objArgs(I)
Next


Here's one for ya...

How would i get rid of the send to floppy drive link? What registry
entry controls the send to functions?
 
B

Big Rich Soprano

Here's one for ya...
Only option is to "hide" the drive altogether. You may use Tweak UI
for this purpose. Note that the drive-letter will be hidden in Explorer
environment, as well. The drive-letter is accessible anyway.


Wow - thanks but i'll leave it alone for the time being. There has to
be a registry hack for that but i have a feeling it's one of those
numeric labels which masks it.
 
K

Keith Miller MVP

Big Rich Soprano said:
Wow - thanks but i'll leave it alone for the time being. There has to
be a registry hack for that but i have a feeling it's one of those
numeric labels which masks it.

That's exactly what TweakUI does.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top