Article View: borland.public.jbuilder.java.language
Article #15276Re: changing the system date on a Windows machine
From: Rich Wilkman
Date: Wed, 30 Jun 1999 00:00
Date: Wed, 30 Jun 1999 00:00
33 lines
1654 bytes
1654 bytes
Jason:
At times like this, it is often best to ask "is there one way on all
platforms to do this". If the answer is no, generally there won't be a
mechansim in Java to do so. These types of actions fall to native code.
-Rich
Jason Singer wrote:
>
> I need implement a change of the system date on a Windows macine from a Java
> program. I have been able to do it with a runtime exec command as:
> Process p1 = rt.exec("tmp123.bat");
> The bat file has a dos date command in it. I would like to do it directly
> from Java. Is it possible? Does anybody know how?
>
> Thanks
> Gary
--
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Rich Wilkman
Quality Assurance Manager
Borland JBuilder Team
If you see something that looks like an opinion up there,
it's mine and mine alone.
Mail sent to me from the newsgroups won't bounce but will
be ignored. If I have time, I'll respond, but you have
a better chance if you confine your posts to the newsgroups
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Technical Details
Message-ID:
<377A3605.F60CCBA0@inprise.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7ldavv$rn314@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,a6884cbfc0ca74bf X-Google-Attributes: gidf74b3,public From: Rich Wilkman <rwilkman@inprise.com> Subject: Re: changing the system date on a Windows machine Date: 1999/06/30 Message-ID: <377A3605.F60CCBA0@inprise.com> X-Deja-AN: 495635893 Content-Transfer-Encoding: 7bit References: <7ldavv$rn314@forums.borland.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language