Re: Launch URL to run Windows program using command line switches

2014-07-01 Thread Bill Vlahos
So I spoke too soon. It looks like the launch command doesn’t actually send 
command line options but rather sends the command to open the specified 
document by the specified application. So I can open the application with the 
document but not actually send it parameters other than to open a document 
which is not what I’m looking for.

Bill Vlahos

On Jun 30, 2014, at 7:03 PM, Bill Vlahos bvla...@mac.com wrote:

 Skip,
 
 This is great. I’ve been struggling with this for a couple of weeks now 
 without success.
 
 This works for me when I point to a .exe file but not if I point to a link 
 file (.lnk) such as in the Start Menu folder. The reason I want to use the 
 .lnk file in Start Menu is that the actual application may be installed in a 
 number of locations (Program Files, Program Files (x86), file server, etc.) 
 but there is always a .lnk file in the Start Menu when the application is 
 installed.
 
 The cmd window in Windows7 supports command line options for .lnk files so I 
 wonder if this is a LiveCode limitation of the launch command.
 
 Thanks for the timely posting.
 
 Bill Vlahos
 
 On Jun 30, 2014, at 1:21 PM, Magicgate Software - Skip Kimpel 
 s...@magicgate.com wrote:
 
 Got it working.  Ended up with this to get it working:
 
 launch c:/Program Files (x86)/MyProgram/file.exe /P
 QUOTEmyfile.txtQUOTE
 
 
 On Mon, Jun 30, 2014 at 3:07 PM, Magicgate Software - Skip Kimpel 
 s...@magicgate.com wrote:
 
 Hello LC'ers,
 
 I need to launch a function within my LC application.  How would I
 properly format a launch URL statement that launches a file with command
 line options?  For instance, what I need to launch is:
 
 C:\Program Files (x86)\MyProgram\file.exe /P myfile.txt
 
 Every way I try to format the statement it does not work and get a can't
 open file.
 
 Here is what I am currently trying but failing miserably with:
 launch url file:c:\Program Files (x86)\MyProgram\file.exe /P
 QUOTEmyfile.txtQUOTE
 
 Your help is always appreciated!
 
 SKIP
 
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Launch URL to run Windows program using command line switches

2014-07-01 Thread Bill Vlahos
Mark,

Bingo! I have it working now and it is a bit convoluted. The aliasReference 
command in conjunction with knowing the actual path to the Start Menu makes it 
work.

Here is the final code for Windows.
set the hideConsoleWindows to true —so we don’t get the cmd window 
flashing
put the aliasReference of C:/Documents and Settings/All 
Users/Start Menu/Programs/Zultys MX/MXIE.lnk into tLInk —actual path to .lnk 
file
put tLink  mxie cmd=show;call=  vNumber into vLink —combine 
the dial command with the phone number to dial
get shell(quote  vLink  quote) —execute the shell command

Whew!

Thanks everyone.

Bill Vlahos


On Jun 30, 2014, at 10:38 PM, Mark Wieder mwie...@ahsoftware.net wrote:

 Bill-
 
 Monday, June 30, 2014, 7:03:25 PM, you wrote:
 
 The cmd window in Windows7 supports command line options for .lnk
 files so I wonder if this is a LiveCode limitation of the launch
 command.
 
 For .lnk files, check out the aliasReference function.
 
 -- 
 -Mark Wieder
 ahsoftw...@gmail.com
 
 This communication may be unlawfully collected and stored by the National 
 Security Agency (NSA) in secret. The parties to this email do not 
 consent to the retrieving or storing of this communication and any 
 related metadata, as well as printing, copying, re-transmitting, 
 disseminating, or otherwise using it. If you believe you have received 
 this communication in error, please delete it immediately.
 
 
 ___
 use-livecode mailing list
 use-livecode@lists.runrev.com
 Please visit this url to subscribe, unsubscribe and manage your subscription 
 preferences:
 http://lists.runrev.com/mailman/listinfo/use-livecode


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Launch URL to run Windows program using command line switches

2014-06-30 Thread Magicgate Software - Skip Kimpel
Hello LC'ers,

I need to launch a function within my LC application.  How would I properly
format a launch URL statement that launches a file with command line
options?  For instance, what I need to launch is:

C:\Program Files (x86)\MyProgram\file.exe /P myfile.txt

Every way I try to format the statement it does not work and get a can't
open file.

Here is what I am currently trying but failing miserably with:
launch url file:c:\Program Files (x86)\MyProgram\file.exe /P
QUOTEmyfile.txtQUOTE

Your help is always appreciated!

SKIP
___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Launch URL to run Windows program using command line switches

2014-06-30 Thread Magicgate Software - Skip Kimpel
Got it working.  Ended up with this to get it working:

 launch c:/Program Files (x86)/MyProgram/file.exe /P
QUOTEmyfile.txtQUOTE


On Mon, Jun 30, 2014 at 3:07 PM, Magicgate Software - Skip Kimpel 
s...@magicgate.com wrote:

 Hello LC'ers,

 I need to launch a function within my LC application.  How would I
 properly format a launch URL statement that launches a file with command
 line options?  For instance, what I need to launch is:

 C:\Program Files (x86)\MyProgram\file.exe /P myfile.txt

 Every way I try to format the statement it does not work and get a can't
 open file.

 Here is what I am currently trying but failing miserably with:
 launch url file:c:\Program Files (x86)\MyProgram\file.exe /P
 QUOTEmyfile.txtQUOTE

 Your help is always appreciated!

 SKIP



___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode


Re: Launch URL to run Windows program using command line switches

2014-06-30 Thread Mark Wieder
Bill-

Monday, June 30, 2014, 7:03:25 PM, you wrote:

 The cmd window in Windows7 supports command line options for .lnk
 files so I wonder if this is a LiveCode limitation of the launch
 command.

For .lnk files, check out the aliasReference function.

-- 
-Mark Wieder
 ahsoftw...@gmail.com

This communication may be unlawfully collected and stored by the National 
Security Agency (NSA) in secret. The parties to this email do not 
consent to the retrieving or storing of this communication and any 
related metadata, as well as printing, copying, re-transmitting, 
disseminating, or otherwise using it. If you believe you have received 
this communication in error, please delete it immediately.


___
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode