 |
| View previous topic :: View next topic |
| Author |
Message |
FernandoERomero Newbie
Joined: 20 Sep 2005 Posts: 1 Location: Houston, TX
|
Posted: Sep 20th, 2005 08:02 AM Post subject: help launching an app from the windows right-click menu |
|
|
I'm programming a jpeg mover, that launches from the right-click menu when selcting a jpeg file or files.
I know how to modify the registry, so my application shows up on the right-click menu when a jpeg file/s is selected.
I need help retrieving the file name/s to use them in the code from renaming purposes and moving. Any ideas? |
|
| Back to top |
|
DoobieKeebler Moderator

Joined: 17 Jun 2005 Posts: 254 Location: 181°15'2.003"W, 93°5'16.956"N
|
Posted: Sep 20th, 2005 08:22 AM Post subject: |
|
|
The Command function will give you the command line arguements that are passed to your program. In your case these should be the file names. Check the Help files for "Command$ function". There's some decent example code that should get you up and running.
One note of caution though. I'm not sure if the filenames will get passed as long filenames (C:\Program Files\Super Mover\lunar surface.jpg) or DOS filenames (C:\Progra~1\Superm~1\lunars~1.jpg). If they get passed as DOS filenames you may have to convert them to long filenames when you move/copy them. Otherwise, if I remember correctly, the new image name will actually be lunars~1.jpg. _________________ Always take into account what a user would never ever in a million years do, because someone will.
"In theory, there's no difference between theory and practice. In practice, there is." -- Yogi Berra |
|
| Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|