Click here to Skip to main content
15,905,963 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Deployment problem? Pin
mr_1234520-Apr-06 3:53
mr_1234520-Apr-06 3:53 
QuestionImplement a command using VB6 Pin
Chatura Dilan5-Apr-06 15:23
Chatura Dilan5-Apr-06 15:23 
AnswerRe: Implement a command using VB6 Pin
Christian Graus5-Apr-06 16:05
protectorChristian Graus5-Apr-06 16:05 
GeneralRe: Implement a command using VB6 Pin
Chatura Dilan5-Apr-06 17:01
Chatura Dilan5-Apr-06 17:01 
GeneralRe: Implement a command using VB6 Pin
Chatura Dilan5-Apr-06 18:16
Chatura Dilan5-Apr-06 18:16 
GeneralRe: Implement a command using VB6 Pin
Christian Graus5-Apr-06 18:18
protectorChristian Graus5-Apr-06 18:18 
GeneralRe: Implement a command using VB6 Pin
Chatura Dilan5-Apr-06 20:34
Chatura Dilan5-Apr-06 20:34 
GeneralRe: Implement a command using VB6 Pin
Dave Kreskowiak6-Apr-06 6:12
mveDave Kreskowiak6-Apr-06 6:12 
You don't need all that junk. VB6 has it's own built-in Shell function. Also, if you're only running this on NT kernel machines, you can also put all your command-line statements together and run them all at once like this:
C:\>SET PATH=D:\Program Files\Java\jdk1.5.0_06 & Java MyApp

Soooo, you can do this in one or two lines:
Dim commandLine As String
commandLine = "CMD /K ""SET PATH=D:\Program Files\Java\jdk1.5.0_06 & JAVA MyApp"""
' The vbHide option (0) should hide the command window and show only your Java app
Shell(commandLine, vbHide)

I can't test this code because I haven't had VB6 installed anywhere for the last, oh, 4 years at least. But, I can tell you that any machine you put this on will require the VB6 Runtime[^] in order to run.

Dave Kreskowiak
Microsoft MVP - Visual Basic
GeneralRe: Implement a command using VB6 Pin
Chatura Dilan6-Apr-06 22:41
Chatura Dilan6-Apr-06 22:41 
QuestionHow to rotate a picture for 180 degrees in VB 6.0 Pin
bbosko5-Apr-06 12:55
bbosko5-Apr-06 12:55 
AnswerRe: How to rotate a picture for 180 degrees in VB 6.0 Pin
Mekong River5-Apr-06 23:02
Mekong River5-Apr-06 23:02 
Question"Sub" is short for...? Pin
Mike Ellison5-Apr-06 12:16
Mike Ellison5-Apr-06 12:16 
AnswerRe: "Sub" is short for...? Pin
Colin Angus Mackay5-Apr-06 12:25
Colin Angus Mackay5-Apr-06 12:25 
GeneralRe: "Sub" is short for...? Pin
Mike Ellison5-Apr-06 12:35
Mike Ellison5-Apr-06 12:35 
GeneralRe: "Sub" is short for...? Pin
FrankyT5-Apr-06 12:53
FrankyT5-Apr-06 12:53 
GeneralRe: "Sub" is short for...? Pin
Mike Ellison5-Apr-06 13:08
Mike Ellison5-Apr-06 13:08 
AnswerRe: "Sub" is short for...? Pin
Steve Pullan5-Apr-06 14:25
Steve Pullan5-Apr-06 14:25 
GeneralRe: "Sub" is short for...? Pin
Garner T5-Apr-06 16:18
Garner T5-Apr-06 16:18 
AnswerRe: "Sub" is short for...? Pin
Guffa5-Apr-06 20:52
Guffa5-Apr-06 20:52 
QuestionHelp... Visualizations and Summary Pin
FeRtoll5-Apr-06 10:44
FeRtoll5-Apr-06 10:44 
AnswerRe: Help... Visualizations and Summary Pin
J4amieC11-May-06 5:23
J4amieC11-May-06 5:23 
QuestionMoney / QuickBooks type app Pin
mroosa5-Apr-06 8:12
mroosa5-Apr-06 8:12 
Questionhow to read the number printed on an image by Vb6 or .Net Pin
Murtuza Husain Miyan Patel5-Apr-06 7:52
professionalMurtuza Husain Miyan Patel5-Apr-06 7:52 
AnswerRe: how to read the number printed on an image by Vb6 or .Net Pin
Christian Graus5-Apr-06 13:44
protectorChristian Graus5-Apr-06 13:44 
QuestionSum algorithm Pin
Scott Page5-Apr-06 7:31
professionalScott Page5-Apr-06 7:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.