Solved

Executing the image file from the EXE created

Posted on 2004-10-20
4
308 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 19

Accepted Solution

by:
arif_eqbal earned 125 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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

I think the Typed DataTable and Typed DataSet are very good options when working with data, but I don't like auto-generated code. First, I create an Abstract Class for my DataTables Common Code.  This class Inherits from DataTable. Also, it can …
It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

710 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