Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 939477
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:47:49+00:00 2026-05-15T21:47:49+00:00

I have a problem compiling a program I made in BASIC. It’s a DOS

  • 0

I have a problem compiling a program I made in BASIC. It’s a DOS simulator that I was making in attempts to see if it is posssible to write an operating system entirly in BASIC. Every time I try to compile, I get these messages:

!SYNTAX ERROR IN LINE 15, COLUMN 50
 UNEXPECTED E
 EXPECTING : OR END OF LINE

What do I change to sovle this?

10 PRINT 
11 PRINT "Starting..."
12 PRINT 
13 PRINT 
14 INPUT "Type the location of the Command Interpretter:"; I$
15 IF I$ = "C:\WINDOWS\COMMAND.COM" THEN GOTO 14 ELSE GOTO 13
16 INPUT "C:\>"; D$
17 IF D$ = "FORMAT" GOTO 25
18 IF D$ = "FDISK" GOTO 47
19 IF D$ = "HELP" GOTO 16
20 IF D$ = "DIR" GOTO 16
21 IF D$ = "MKDIR" GOTO 16
22 IF D$ = "WIN" GOTO 16
23 IF D$ = "CD" GOTO 16
24 IF D$ = "DEL" GOTO 16
25 PRINT "WARNING, ALL DATA ON REMOVABLE DISK"
27 PRINT "DRIVE A: WILL BE LOST!"
28 INPUT "Proceed with Format (Y/N)"; F$
29 IF F$ = "Y" THEN GOTO 28
30 IF F$ = "N" THEN GOTO 16
31 PRINT 
32 PRINT 
33 PRINT 
34 PRINT "Fotmatting 1.44MB"
35 PRINT "Format complete."
36 PRINT "Writing out file allocation table"
37 PRINT "Complete."
38 PRINT "Calculating free space (this may take several minutes)...................."
39 PRINT "Complete."
40 PRINT 
41 INPUT "Volume Label (11 charchters, ENTER for none)"
42 PRINT 
43 PRINT "              1,440MB total disk space"
44 PRINT "              1,440MB available on disk"
45 PRINT 
46 PRINT "                       512 bytes in each allocation unit."
47 PRINT "                  32,624 allocation units available on disk."
48 PRINT "Volume Serial Number is 326A-1312"
49 GOTO 16
50 PRINT "Incorrect DOS Version"
51 PRINT 
52 GOTO 16

I used Vintage BASIC 1.0.1 as the compiler. Anyone know what’s going on?
Windoze NT

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T21:47:50+00:00Added an answer on May 15, 2026 at 9:47 pm

    I note that you’ve changed the code originally posted, deleting the duplicate line numbers That will make the first part of this answer look weird, but I’ll leave it.

    The compiler is telling you that you’re re-using the same line numbers. Notice the following section of code?

    26 PRINT "DRIVE A: WILL BE LOST!"
    27 INPUT "Proceed with Format (Y/N)"; F$
    26 IF F$ = "Y" THEN GOTO 28
    27 IF F$ = "N" THEN GOTO 16
    

    The fix is to renumber your lines. Now you know why you don’t usually use increments of 1 between lines in languages that require line numbers! (You can likely find – or even write – a tool to do it for you, however.)

    Regarding the error from:

    15 IF I$ = "C:\WINDOWS\COMMAND.COM" THEN GOTO 14 ELSE GOTO 13
    

    I’ve not run across “Vintage BASIC” before, but assuming the other answers about it not supporting an else are correct, you’ll want something like:

    15 IF I$ = "C:\WINDOWS\COMMAND.COM" THEN GOTO 14 
    16 IF I$ <> "C:\WINDOWS\COMMAND.COM" THEN GOTO 13
    

    You may need to replace “<>” with “!=” or whatever your BASIC uses as a not equal to operator. Also, you’ll have to do more renumbering, since you already have a line 16.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 491k
  • Answers 491k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Something like this: <StackPanel> <TextBlock Text="{Binding ClassAProperty}"/> <TextBlock Text="{Binding ClassBProperty}"/>… May 16, 2026 at 10:06 am
  • Editorial Team
    Editorial Team added an answer This might be hard to implement if your shape self… May 16, 2026 at 10:06 am
  • Editorial Team
    Editorial Team added an answer So my unfruitful search suddenly became fruitful. var mouse_input =… May 16, 2026 at 10:06 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I have a problem compiling Haskell programs, that import the Text.Regex.Posix module. I have
I'm learning C++ and can't get my head around this problem: I have a
I have a problem with jQuqeryUI. I would like to run some code whenever
I have written a universal app that's working fine on both iPhone (iPod Touch)
I have problem with refering to special symbol in string: I have: path='C:\dir\dir1\dir2\filename.doc' and
I have problem concerning translations in qt. All translations in my porject work fine,
I'm facing a problem when I need to distribute my java application, created using
Why does this program correctly display a message box, but does not set the
I am getting the following error message when compiling or attempting to run my
I have a small single-threaded C++ application, compiled and linked using Visual Studio 2005,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.