1

In a beginner coding course that wants us to use command prompt to execute various types of files we created in notepad. I have run JavaScript and Python files, but whenever I try to run a VBS file I created:

c:\entd261>cscript myscriptl01.vbs

Command Prompt responds with

Input Error: Can not find script file "c:\entd261\myscriptl01.vbs".

All of my files are located in the same folder and when ran have no issue. I have VBSedit software that opens the file just fine, Cmd prompt is the only issue. OS: Windows 10 Home 2004 if that matters.

4
  • Are you sure the filename is correct? You haven't got O instead of 0? Try cscript m then press tab for command line completion
    – cup
    Commented May 8, 2021 at 5:03
  • What happens if, in the same folder, you issue type myscriptl01.vbs ? Commented May 8, 2021 at 7:58
  • Did you try to run the scrip in file explorer?
    – Toni
    Commented May 9, 2021 at 12:50
  • Type the full path for the script file like cscript "C:\MyScripts\VBS\myscriptl01.vbs" (or wherever it may be)
    – Theo
    Commented May 15, 2021 at 10:06

0

You must log in to answer this question.

Browse other questions tagged .