Link to home
Start Free TrialLog in
Avatar of TungVan
TungVan

asked on

vb6 and command line


Hi,

I want to compile my vb project using batch file. I have to specify the whole path "C:\Program Files\Microsoft Visual Studio\VB98\VB6.EXE" instead of just VB6.EXE

Does anyone know why?


Thanks
SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of TungVan
TungVan

ASKER


i put it in my path. I can now use vb6 at the run textbox

but if i type vb6 at the DOS, it does not recognize
1) what os, what version?

>but if i type vb6 at the DOS, it does not recognize

on the DOS, type ECHO $PATH
what does it return, ie does it include the path to the vb6?
also, did you open a NEW dos window after setting the path?
Avatar of TungVan

ASKER

i'm using win xp

it returns $PATH if if i type echo $path

and i also opened a new dos window after setting the path
sorry, should be
ECHO %PATH%
how did you set the path?
Avatar of TungVan

ASKER

C:\>echo %path%
C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Microso
ft Visual Studio\Common\MSDev98\Bin;C:\Program Files\Common Files\Adaptec Shared
\System;C:\Program Files\Microsoft SQL Server\80\Tools\BINN; C:\Program Files\Mi
crosoft Visual Studio\VB98


I right-click on my computer i go to advanced->environment path then i append it to INCLUDE
btw, what is the error message?
Avatar of TungVan

ASKER

I get the following error:

C:\>vb6
'vb6' is not recognized as an internal or external command,
operable program or batch file.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
good catch, ddpeastino!
My first expert points!!!
Angel really deserves them though....