Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using VBC.exe to compile code

Status
Not open for further replies.

mainmast

Programmer
Jun 26, 2003
176
US
Hi,

I'm trying to create a custom control, and I'm getting stuck on the compiling part. I go to a command prompt, browse to the appropriate directory where my custom control in a .vb file is, and type:

vbc /t:library /out:..\..\bin\CustomControls.dll /r:System.dll /r:System.Web.dll CustomControl1.vb

I get the error:

'vbc' is not recognized as an internal or external command,
operable program or batch file.


I've searched my computer for VBC.exe and it found it. Why isn't it working?

"Everything is possible, it just depends on how much you want to pay for it."

-James
 
You have to either:

1) Browse to the folder where the vbc.exe file is (the framework folder) and type in the command from there

2) Add the framework path to your environmental variables path in windows (then you can run the vbc file from any folder)

--------------------------------------------------------------------------------------------------------------------------------------------

Need help finding an answer?

Try the search facility ( or read FAQ222-2244 on how to get better results.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top