Log inUsernamePassword
Log me on automatically each visit    
Register
Register
Log in to check your private messages
Log in to check your private messages
Visual Basic Forum for Visual Basic Programmers VB Forum Index » Registry & File Input / Output

Post new topic   Reply to topic
help launching an app from the windows right-click menu
View previous topic :: View next topic  
Author Message
FernandoERomero
Newbie


Joined: 20 Sep 2005
Posts: 1
Location: Houston, TX

PostPosted: Sep 20th, 2005 08:02 AM    Post subject: help launching an app from the windows right-click menu Reply with quote

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
View user's profile Send private message
DoobieKeebler
Moderator


Joined: 17 Jun 2005
Posts: 254
Location: 181°15'2.003"W, 93°5'16.956"N

PostPosted: Sep 20th, 2005 08:22 AM    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Visual Basic Forum for Visual Basic Programmers VB Forum Index » Registry & File Input / Output All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
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


Visual Basic Forum runs phpBB | Forum Template © iOptional
VB Resources | SSL | Visual Basic