Windows Command Code Resolved
Lynch, Jonathan
bnz2 at cdc.gov
Fri Jul 29 19:17:35 EDT 2005
Perhaps doing this?
put "start" && quote & the eBookContents of this stack & quote into
openCmd
also, for some Windows systems, I believe that it is necessary to
replace "/" with "\" in your file path.
Hey Dan, what Windows OS are you using?
-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Lynch,
Jonathan
Sent: Friday, July 29, 2005 7:07 PM
To: How to use Revolution
Subject: RE: Windows Command Code Resolved
Something to be wary of...
If the file path to your document contains spaces, it might confuse the
start command.
-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Dan Shafer
Sent: Friday, July 29, 2005 6:58 PM
To: Revolution List
Subject: Windows Command Code Resolved
Just to close the loop on my earlier question....
Chipp and I walked through on the phone the use of the "start"
command in the Win shell and for some reason, it worked fine. I think
I was enclosing the file name in quotation marks earlier and when I
took them out, voila!
So the bare-bones version of this is simplicity itself:
on mouseUp
if the platform is "Win32" then
put "start" && the eBookContents of this stack into openCmd
else
put "open" && the eBookContents of this stack into openCmd
end if
put shell (openCmd) into shellResult
end mouseUp
Lots of error-checking and other stuff to add, of course, but this
gets me to the next level.
I appreciate everyone's help, esp. Jonathan, who went way above and
beyond and, of course, Chipp.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Dan Shafer, Revolution Consultant and Author
http://www.shafermedia.com
Get my book, "Revolution: Software at the Speed of Thought"
From http://www.revolutionpros.com, Click "My Stuff"
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your
subscription preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution
More information about the use-livecode
mailing list