Matt Gerrans
Posts: 1153
Nickname: matt
Registered: Feb, 2002
|
|
Re: running a program from a java application
|
Posted: Feb 25, 2002 11:55 PM
|
|
Actually, assuming you are running Windows/DOS, I think the problem is that date is not program, but an internal command of the command interpreter (command.com, or cmd.exe depending on your Windows platform -- look at the COMSPEC environment variable).
You could instead try running "command /c echo.|date" instead, or create a batch file and call that. The reason I added the "echo.|" part is that date will sit there and wait for you to enter a new date without it.
|
|