help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: reading hostname into a string var in Windows


From: Andy Buckle
Subject: Re: reading hostname into a string var in Windows
Date: Tue, 21 Sep 2010 06:45:49 +0100

On Tue, Sep 21, 2010 at 6:37 AM, Tim Rueth <address@hidden> wrote:
> I know there's a simple answer to this question, I just can't figure out
> what it is:  How do I read the hostname into a string variable in Octave?
> I'm on Windows Vista.
>
> Thanks,
>
> --Tim

[exitcode host]=system("echo %computername%")

I tested on XP. I think this should work on Vista.

-- 
/* andy buckle */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]