r/programminghelp • • 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

10 comments sorted by

View all comments

Show parent comment

1

u/Careless_Half5788 Aug 29 '23

I did what you asked but even after restarting visual studio code, the error is still there.

1

u/XRay2212xray Aug 29 '23

I was suggesting you update the environment variable outside of vs code and then of course restart vs code and see if that helps

https://phoenixnap.com/kb/windows-set-environment-variable