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
TungVanAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
if  "C:\Program Files\Microsoft Visual Studio\VB98" is not in the PATH environment variable, this is normal.
you can change the evironment variable to include that path, and you don't need to specify the path next time you open the command prompt.
0
TungVanAuthor Commented:

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
0
Guy Hengel [angelIII / a3]Billing EngineerCommented:
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?
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Guy Hengel [angelIII / a3]Billing EngineerCommented:
also, did you open a NEW dos window after setting the path?
0
TungVanAuthor Commented:
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
0
Guy Hengel [angelIII / a3]Billing EngineerCommented:
sorry, should be
ECHO %PATH%
0
Guy Hengel [angelIII / a3]Billing EngineerCommented:
how did you set the path?
0
TungVanAuthor Commented:
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
0
Guy Hengel [angelIII / a3]Billing EngineerCommented:
btw, what is the error message?
0
TungVanAuthor Commented:
I get the following error:

C:\>vb6
'vb6' is not recognized as an internal or external command,
operable program or batch file.
0
ddepastinoCommented:
DOH!

You have a leading space in the last path.  I entered mine the same way and got the same result.  RUN is a little more forgiving than a CMD prompt, it will also allow pathing with spaces and no quotes.  Nix the space and it will allow "vb6" as a command from CMD or RUN.

I.E. Change ....80\Tools\BINN; C:\Program Files\Microsoft Visual Studio\VB98
To              ....80\Tools\BINN;C:\Program Files\Microsoft Visual Studio\VB98

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Guy Hengel [angelIII / a3]Billing EngineerCommented:
good catch, ddpeastino!
0
ddepastinoCommented:
My first expert points!!!
Angel really deserves them though....
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.