Windows Command Code Resolved

Lynch, Jonathan bnz2 at cdc.gov
Mon Aug 1 09:39:20 EDT 2005


One other thing to consider adding to this script...

In the rev front scripts, which accessing the windows shell, they use
this command:
revSetWindowsShellCommand

Which I guess makes sure that Rev uses the correct type of shell command
for the specific windows system that the user is using. (I believe it
has to choose between cmd.exe vs. command.exe)



-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of Lynch,
Jonathan
Sent: Monday, August 01, 2005 9:28 AM
To: chipp at chipp.com; How to use Revolution
Subject: RE: Windows Command Code Resolved

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

_______________________________________________
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