Shell command syntax in Windows
Bill Vlahos
bvlahos at mac.com
Wed Jun 25 01:43:47 EDT 2014
I was able to get a dir listing but not at the correct folder.
The example I used was to get a directory listing from shell. What I really want to do is send “cmd=show” to the mxie.lnk (shortcut to the application) in the path “C:\ProgramData\Microsoft\Start Menu\Programs\Zultys MX\ .
If I navigate to C:\ProgramData\Microsoft\Start Menu\Programs\Zultys MX\ in the Windows cmd shell and then issue “mxie.lnk cmd=show” at the prompt the mxie application comes to the front.
Bill
On Jun 24, 2014, at 3:59 PM, Mark Wieder <mwieder at ahsoftware.net> wrote:
> Bill-
>
> Monday, June 23, 2014, 7:45:52 PM, you wrote:
>
>> Im trying to run a shell command on Windows and the following
>> code gives an error on the put the wheel of dir into field one.
>
>> The goal of the script below is to get a directory listing in the Programs folder.
>
>> Setup: A field one and a button where this script is in.
>
>> on mouseUp
>> set the shellCommand to C:\ProgramData\Microsoft\Start Menu\Programs
>> put shell (dir) into field one
>> end mouseUp
>
> Been a while since I've had to deal with Windows, but I believe the
> shellCommand has to point to either command.com or cmd.exe, depending
> on the Windows version.
>
> If you want to get a directory listing of the Programs folder, why not
> set the defaultFolder and get the files?
>
> --
> -Mark Wieder
> ahsoftware at 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 at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
More information about the use-livecode
mailing list