Windows Command Code Resolved
MisterX
b.xavier at internet.lu
Mon Aug 1 10:37:45 EDT 2005
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
>
More information about the use-livecode
mailing list