How can Squeak get Windows root directory ?

John Pierce john.raymond.pierce at gmail.com
Fri Aug 19 18:42:01 UTC 2005


Hi Bret,

I know you won't like this answer, but download .NET Framework 1.1 and 
install (probably already have it), and download and install Squeak .NET 
Bridge on SqueakMap, then....

Run the following in a workspace:

DotNet Environment getEnvironmentVariable: #windir

Voila!

Regards,

John

On 8/19/05, Bert Freudenberg <bert at impara.de> wrote:
> 
> Sure. Your question sounded like you wanted to access the root
> directory.
> 
> So you actually want some platform-dependent information. Well, look
> up what you would do in another programming environment to access
> that information. Then do the same from Squeak. If you do not know
> how to do that from Squeak, please explain that specific problem here.
> 
> - Bert -
> 
> Am 19.08.2005 um 18:04 schrieb IPSistemos:
> 
> > Hello,
> >
> > "FileDirectory root" does not return C:\WINDOWS as expected for the
> > WINDOWS XP user.
> >
> > Friday, August 19, 2005, 6:09:13 PM, you wrote:
> >
> >> Am 19.08.2005 um 14:40 schrieb Valdas Bucinskas:
> >>
> >
> >
> >>> Hi,
> >>>
> >>> I am new to Squeak and smalltalk. I would like to know, how can I
> >>> obtain the
> >>> windows root directory with Squeak?
> >>>
> >
> >
> >> FileDirectory root
> 
> 
> 
> 
> 


-- 
It's easy to have a complicated idea. It's very very hard to have a simple 
idea. -- Carver Mead
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/squeak-dev/attachments/20050819/8883b6cd/attachment.htm


More information about the Squeak-dev mailing list