Windows Command Code Resolved

Lynch, Jonathan bnz2 at cdc.gov
Mon Aug 1 10:41:15 EDT 2005


Hi Xavier - this is the revSetWindowsShellCommand from the revCommon
script:

on revSetWindowsShellCommand
  if the platform is not "Win32" then exit revSetWindowsShellCommand
  set the hideConsoleWindows to true
  if $COMSPEC is not empty then set the shellCommand to $COMSPEC
  else
    --just in case some windows versions don't use $COMSPEC
    if revRunningWindowsNT() then set the shellCommand to "cmd.exe"
    else set the shellCommand to "command.com"
  end if
end revSetWindowsShellCommand

I guess the two accomplish essentially the same thing.

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of MisterX
Sent: Monday, August 01, 2005 10:38 AM
To: 'How to use Revolution'
Subject: RE: Windows Command Code Resolved

Jon

here's a little function from XOS's scripts

on CheckShellPlatform
  if (the platform = "win32") and (word 1 of the systemversion is
"windows")
then
    set the shellcommand to "command.com"
  else
    set the shellcommand to "cmd.exe"
  end if
end CheckShellPlatform

cheers
Xavier

> -----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 15:39
> To: How to use Revolution
> Subject: RE: Windows Command Code Resolved
> 
> 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
> 
> _______________________________________________
> 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