Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Executing the image file from the EXE created

Posted on 2004-10-20
4
Medium Priority
?
321 Views
Last Modified: 2010-04-24
Hello,
  I have created a small application which helps in viewing the images as thumbnails and normal views and i have generated an exe file. And i am trying to open a image file from the Windows Explorer using the EXE i have created/generated using the VB code(I.e using the OPen with option of windows). The result is it is opening the application and is not showing the image which i wanted to see with my application.
Can anybody help me in creating the link so that i can use the Open with option of widows for my executable file.


Regards,
said
0
Comment
Question by:saidreddy
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
arif_eqbal earned 375 total points
ID: 12357019
Pass the file name of the file as command line argument to your Exe and in your program use the Command Line argument to show the file
0
 

Author Comment

by:saidreddy
ID: 12357122
HI,
  Thanks for your prompt reply.
But can you tell me how i can pass the name of the file as command line arument to the exe which i have created..?


Thanks.

regards,
said
0
 
LVL 3

Expert Comment

by:RacinRan
ID: 12357484
like this:


Sub Main()

     Dim Argument As String() = Environment.GetCommandLineArgs()

End Sub

Then run your app from the start --> run command line like this:

c:\myapp myparam


Racin
0
 
LVL 3

Expert Comment

by:RacinRan
ID: 12357515

The variable Argument will have the value -- "myparam"

In this case you would pass your file name.

If you want the user to select the file you'll need to create the form interface and bag the command line.

Racin
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

783 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question