Solved

Executing the image file from the EXE created

Posted on 2004-10-20
4
304 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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 …
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 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