Windows Command Code Resolved
Lynch, Jonathan
bnz2 at cdc.gov
Mon Aug 1 09:28:16 EDT 2005
This works on my computer - much easier than the convoluted script I was
using.
I think Chipp's adding in the shortfilepath function was the key...
Earlier attempts at using this approach did not work for me, presumably
because quotes and spaces were confusing 'start'.
Thanks Chipp!
-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Chipp
Walters
Sent: Friday, July 29, 2005 11:37 PM
To: How to use Revolution
Subject: Re: Windows Command Code Resolved
Hi gang,
Got it working. Pretty simple actually:
Here's the guts (after putting the filepath into fld "docPath")
put shortFilePath(fld "docPath") into tDocPath
replace "/" with "\" in tDocPath
put "start" && tDocPath into tDosCommand
set the hideconsolewindows to true
get shell(tDosCommand)
Here's a demo: type in the message:
go URL "http://www.altuit.com/webs/altuit2/RunRev/WinXPFileLauncher.rev"
best,
Chipp
_______________________________________________
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