logo       

RE: Launch Local EXE App With Command Line Args: msg#00040

Subject: RE: Launch Local EXE App With Command Line Args
Leo,

Thanks, but I think you miss understood what I was asking.

 

Yes, I wrote the app, and yes, the app already accepts the arguments.  That
was the easy part.  Now, I want to send a link in an email which launches
the app (which I can do now, but not with command line arguments).

 

The problem is I don't know how to make the link in the outlook html view
include command line args or if it is even possible at all.

 

So, I want to pass a link that looks something like so:

 

C:\MyApplication.exe /id:345

 

And when the user clicks it, the application is launched, and the /id:345 is
passed in as a command line argument to the application which already has
the ability to parse that.

 

Thanks for everyone's help, keep the ideas coming if you have them.  The
last option I want to do is include an attachment with a custom file type
that my application is registered to handle.  I want to keep things simpler
if possible for the user and myself.

 

Brian

 

 

 

  _____  

From: Leo Kaminski [mailto:leo@xxxxxxxxxxxx] 
Sent: Tuesday, December 07, 2004 6:57 PM
To: padnug@xxxxxxxxxxxxxxx
Subject: Re: [padnug] Launch Local EXE App With Command Line Args

 

Did you write the exe that you are trying to launch?  If you did you can
write your app to accept command line arguments.  Also, there is a place in
the VS.Net project properties "configuration" settings for "command line
arguments" (I don't remember how this works at the moment).

If you did not write the exe, then it will depend on whether that
application accepts command line arguments.  For example: MS Word does, but
MS WordViewer does not.  You also need to know what arguments that app
accepts.

You should be able to launch a file from an HTML HREF link unless Outlook's
security settings stop it from running. Not sure if this will work here but
this link opened Notepad from a web page. NotePad 
IE warned me that the file could be unsafe, but I was able to launch the
app.



----- Original Message ----- 
  From: Brian Russell 
  To: padnug@xxxxxxxxxxxxxxx 
  Sent: Monday, December 06, 2004 7:42 PM
  Subject: [padnug] Launch Local EXE App With Command Line Args


  Everyone,



  I have been searching around the net today and doing various experiments,
  but I can't seem to solve this problem.  It is probably really simple and
I
  am just overlooking something.



  What I need to do is launch a Windows Forms application passing in some
  command line args to it from a link in an email.  The application will
send
  email to users, and for their convenience, we want them to be able to
click
  a link in the email to launch the application and go straight to the area
  needed.



  We always know where the path to the exe is, so that isn't a problem.  We
  also know that the email client is Outlook 2002 or higher.  Can anyone
help
  me with this?



  Thanks,



  Brian Russell



  [Non-text portions of this message have been removed]


        Yahoo! Groups Sponsor 
              ADVERTISEMENT
             
       
       


----------------------------------------------------------------------------
--
  Yahoo! Groups Links

    a.. To visit your group on the web, go to:
    http://groups.yahoo.com/group/padnug/

      
    b.. To unsubscribe from this group, send an email to:
    padnug-unsubscribe@xxxxxxxxxxxxxxx
      
    c.. Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.




[Non-text portions of this message have been removed]






Yahoo! Groups Sponsor



ADVERTISEMENT
 
<http://us.ard.yahoo.com/SIG=129cf7m97/M=298184.5639630.6699735.3001176/D=gr
oups/S=1705007709:HM/EXP=1102561036/A=2434971/R=0/SIG=11eeoolb0/*http:/www.n
etflix.com/Default?mqso=60185400> click here


 
<http://us.adserver.yahoo.com/l?M=298184.5639630.6699735.3001176/D=groups/S=
:HM/A=2434971/rand=314402077> 

 

  _____  

Yahoo! Groups Links

*       To visit your group on the web, go to:
http://groups.yahoo.com/group/padnug/
  
*       To unsubscribe from this group, send an email to:
padnug-unsubscribe@xxxxxxxxxxxxxxx
<mailto:padnug-unsubscribe@xxxxxxxxxxxxxxx?subject=Unsubscribe> 
  
*       Your use of Yahoo! Groups is subject to the Yahoo!
<http://docs.yahoo.com/info/terms/>  Terms of Service. 



[Non-text portions of this message have been removed]



------------------------ Yahoo! Groups Sponsor --------------------~--> 
Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar.
Now with Pop-Up Blocker. Get it for free!
http://us.click.yahoo.com/L5YrjA/eSIIAA/yQLSAA/dpFolB/TM
--------------------------------------------------------------------~-> 

 


<Prev in Thread] Current Thread [Next in Thread>