1 Replies - 4474 Views - Last Post: 15 February 2006 - 11:05 PM Rate Topic: -----

#1 kmctit  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 12-February 06

closing a cd tray using java

Posted 15 February 2006 - 04:38 AM

sir,

i want to close the cd tray using java program.i opened it using a vbs file which can be called through Runtime.getRuntime().exec("WScript <filename.vbs> ");

But i want to know how can close this cd tray using java programming...

the vbs file cotains the code for opening as


CreateObject(\"Shell.Application\").NameSpace(17).ParseName(\"g\" & \":\\\").InvokeVerb(\"e&ject\")");



Now i want to close the cd tray using a vbscript or through any other method which can be implemented in java..plz help me...........

Is This A Good Question/Topic? 0
  • +

Replies To: closing a cd tray using java

#2 born2c0de  Icon User is offline

  • printf("I'm a %XR",195936478);
  • member icon

Reputation: 180
  • View blog
  • Posts: 4,667
  • Joined: 26-November 04

Re: closing a cd tray using java

Posted 15 February 2006 - 11:05 PM

Your answer lies here


:)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1