r/programminghelp • u/Careless_Half5788 • Aug 28 '23
Visual Basic Could someone help me with this code (Visual Basic/VB.NET)?
For reference, I am using Visual Studio Code and the extension vscode-runner to run the Visual Basic. I’m completely new to coding and this is for homework. The code is:
Module Module1 Sub Main() Console.Writeline(« Hello World ») Console.Readline() End Sub End Module
The error message is:
[Running] cd « c:\Desktop\ » && vbc /no logo New Text Document.vb && « c:\Desktop\ »New Text Document ‘vbc’ is not recognised as an internal or external command, operable program or batch file.
2
Upvotes
View all comments
1
u/XRay2212xray Aug 29 '23
Check that the location of vbc.exe is in the path environment variable. Its location varies by which .net framework you have installed. Look under \windows\microsoft.net\ in the framework directories. It may be in muliple as you can have multiple frameworks installed. Just add the directory to the path environment variable.