Solved

Executing the image file from the EXE created

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

Enroll in July's Course of the Month

July's Course of the Month is now available! Enroll to learn HTML5 and prepare for certification. It's free for Premium Members, Team Accounts, and Qualified Experts.

Question has a verified solution.

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

1.0 - Introduction Converting Visual Basic 6.0 (VB6) to Visual Basic 2008+ (VB.NET). If ever there was a subject full of murkiness and bad decisions, it is this one!   The first problem seems to be that people considering this task of converting…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

623 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