Shell command syntax in Windows

Bill Vlahos bvlahos at mac.com
Sun Jun 29 20:08:04 EDT 2014


I’m beginning to think that what I want to do is impossible. I’ve tried all the suggestions and they all fail.

Bill Vlahos
_________________
InfoWallet (http://www.infowallet.com) is about keeping your important life information with you, accessible, and secure.
lcTaskList: (http://www.infowallet.com/lctasklist/index.htm)
RunRev lcTaskList Forum: (http://forums.runrev.com/viewforum.php?f=61)

On Jun 25, 2014, at 9:03 AM, Mike Bonner <bonnmike at gmail.com> wrote:

> DOH, ignore the ; method. For some reason I was stuck in mac/linux
> thinking.  The absolute method still works fine.  (could embed a return in
> your command string rather than a semicolon.) Sorry bout that, was sleepy.
> 
> 
> On Tue, Jun 24, 2014 at 6:19 PM, Mike Bonner <bonnmike at gmail.com> wrote:
> 
>> Easiest way to do it with shell is with the absolute path. Or you could cd
>> to the location, and use a semicolon to string two commands like so:
>> put shell(merge("cd [[path]] ; dir")) into field one -- changes directory,
>> then gets the dir.
>> Or this with an absolute path.
>> 
>> put the shortfilepath of "c:\whatever path\you need\" into tPath --
>> shortfilepath so you don't have to worry about escaping spaces.  Turns it
>> into an 8.3 path.
>> put shell(merge("dir [[tPath]]")) into field one -- single shell command
>> rather than 2 strung together with semicolon
>> 
>> The shellcommand isn't used to set the path, it should point to the shell
>> you wish to use for the command execution. (not on my windows machine, so
>> can't tell you where cmd is) Shouldn't be needed in this case though.
>> 
>> 
>> On Tue, Jun 24, 2014 at 4:59 PM, Mark Wieder <mwieder at ahsoftware.net>
>> wrote:
>> 
>>> Bill-
>>> 
>>> Monday, June 23, 2014, 7:45:52 PM, you wrote:
>>> 
>>>> I m 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
>>> 
>> 
>> 
> _______________________________________________
> 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