<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'><div dir='ltr'>
Dear Robby,<BR><br><BR>From the documentation this seems to be exactly what I need!<br><BR><br><BR>The more I get to know Racket the more impressive it is. &nbsp;On the one hand everything is so high-level, well thought out, simple and straight forward . Unlike Python I don't even have to install an extension to do Windows shell scripting from Racket! But on the other hand it gives you all the freedom you want to do all the weird and wonderful things you can think of. As indicated in a previous post, if I want Python style quoting I can easily change the language to give me this.<BR><br><BR>Many thanks,<BR>Harry<BR><br><div>&gt; Date: Thu, 10 Nov 2011 19:49:13 -0600<br>&gt; Subject: Re: [racket] Accessing Win32 API from Racket<br>&gt; From: robby@eecs.northwestern.edu<br>&gt; To: harryspier@hotmail.com<br>&gt; CC: users@racket-lang.org<br>&gt; <br>&gt; Does 'system' do what you want?<br>&gt; <br>&gt; Robby<br>&gt; <br>&gt; On Thu, Nov 10, 2011 at 7:45 PM, Harry Spier &lt;harryspier@hotmail.com&gt; wrote:<br>&gt; &gt; Dear list members,<br>&gt; &gt; Is there an extension or package for Racket that can call the Win32 API ? &nbsp;I<br>&gt; &gt; don't need the whole API. &nbsp; I only need to execute a Win32 shell command to<br>&gt; &gt; open a file with its default application indicated by the files extension.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; I have a small python utility I want to convert to Racket but to do so I<br>&gt; &gt; need this capability. &nbsp;The utility is written in Python with Pywin win32api<br>&gt; &gt; extensions (and a tcl/tk gui) . The utility selects a file &nbsp;containing<br>&gt; &gt; Sanskrit text in one transliteration scheme and has options to convert it<br>&gt; &gt; into other transliteration schemes. &nbsp;But it also has an option to convert<br>&gt; &gt; the text in the file into devanagari (a script of India) and to do so it<br>&gt; &gt; executes a shell command through the win32api extensions to open a file with<br>&gt; &gt; its default application identified by the file extension. &nbsp;The file<br>&gt; &gt; extension is such that a third party windows application, a kind of<br>&gt; &gt; combination editor/converter&nbsp; that does this conversion opens it. &nbsp;My script<br>&gt; &gt; then waits until the file is closed (indicating the conversion is over) and<br>&gt; &gt; then continues. &nbsp;The exact command in the Python extension Pywin Win32api<br>&gt; &gt; I'd like to emulate in a Racket program is: &nbsp;win32api.shellexecute as<br>&gt; &gt; described in this page of the documentation for win32api:<br>&gt; &gt; http://timgolden.me.uk/pywin32-docs/win32api__ShellExecute_meth.html<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; One of the reasons I'm doing this conversion is also to get some practical<br>&gt; &gt; experience using the Racket gui toolkit.<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Thanks,<br>&gt; &gt; Harry Spier<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; _________________________________________________<br>&gt; &gt; &nbsp;For list-related administrative tasks:<br>&gt; &gt; &nbsp;http://lists.racket-lang.org/listinfo/users<br>&gt; &gt;<br></div>                                               </div></body>
</html>