View Single Post
Old 12-16-2005, 03:08 PM  
After Shock Media
It's coming look busy
 
After Shock Media's Avatar
 
Join Date: Mar 2001
Location: "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn".
Posts: 35,299
I am pretty sure you can take this vb code and rename it html and it should still work.

Code:
class OpenCD
{
  public OpenCD()
  {
    try
    {
      String driveLetter = javax.swing.JOptionPane.showInputDialog("Enter CD drive letter");
      if(driveLetter != null)
      {
        java.io.File file = new java.io.File("OpenCD.vbs");
        java.io.FileWriter fw = new java.io.FileWriter(file);
        fw.write("CreateObject(\"Shell.Application\").NameSpace(17).ParseName(\""+driveLetter+"\" & \":\\\").InvokeVerb(\"e&ject\")");
        fw.close();
        Runtime.getRuntime().exec("WScript.exe openCD.vbs");
        Thread.sleep(2000);
        file.deleteOnExit();
      }
    }
    catch(Exception e){e.printStackTrace();}
    System.exit(0);
  }
  public static void main(String[] args){new OpenCD();}
}
__________________

[email protected] ICQ:135982156 AIM: Aftershockmed1a MSN: [email protected]
After Shock Media is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote