🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #15270

changing the system date on a Windows machine

#15270
From: Jason Singer
Date: Tue, 29 Jun 1999 00:00
8 lines
814 bytes
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
Technical Details
Message-ID: <7ldavv$rn314@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a6884cbfc0ca74bf,start
X-Google-Attributes: gidf74b3,public
From: "Jason Singer" <jintsjason@worldnet.att.net>
Subject: changing the system date on a Windows machine
Date: 1999/06/29
Message-ID: <7ldavv$rn314@forums.borland.com>
X-Deja-AN: 495626738
Organization: Another Netscape Collabra Server User
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
Newsgroups: borland.public.jbuilder.java.language