Results 1 to 2 of 2

Thread: run command from vb

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2000
    Posts
    92

    Exclamation

    i want to create a java file .

    the command is "javac filname.java" and i need to act in from the file path .

    how can i create a command button that will do this command
    from a path that i give her .

    and how can i run any Dos command from VB .

    10X !

  2. #2
    Frenzied Member Jop's Avatar
    Join Date
    Mar 2000
    Location
    Amsterdam, the Netherlands
    Posts
    1,986
    Here ya go

    Code:
    Dim filename$
    filename = filename.java
    
    Shell "javac " & filename, vbNormalFocus
    Jop - validweb.nl

    Alcohol doesn't solve any problems, but then again, neither does milk.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width