Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: this program cannot be run in dos mode  (Read 4365 times)

0 Members and 1 Guest are viewing this topic.

ChickenJoe

    Topic Starter


    Newbie

    • Experience: Experienced
    • OS: Windows 7
    this program cannot be run in dos mode
    « on: August 18, 2017, 11:40:56 PM »
    Okay so i'm trying to use attrib.exe in ms dos but it says "this program cannot be run in dos mode".

    I thought attrib was supported as an external command. Anyone have an idea on why it isn't working?  ???

    BC_Programmer


      Mastermind
    • Typing is no substitute for thinking.
    • Thanked: 1140
      • Yes
      • Yes
      • BC-Programming.com
    • Certifications: List
    • Computer: Specs
    • Experience: Beginner
    • OS: Windows 11
    Re: this program cannot be run in dos mode
    « Reply #1 on: August 19, 2017, 11:00:51 AM »
    "This program cannot be run in DOS Mode" is the error message a 32-bit Windows executable gives when you try to run it in MS-DOS. Based on that I think your attrib.exe is from a Windows installation as is not a DOS Executable, so you cannot use it there.
    I was trying to dereference Null Pointers before it was cool.

    ChickenJoe

      Topic Starter


      Newbie

      • Experience: Experienced
      • OS: Windows 7
      Re: this program cannot be run in dos mode
      « Reply #2 on: August 19, 2017, 12:48:52 PM »
      Thank you for replying. But how would I get a 16 bit version of attrib?

      Salmon Trout

      • Guest
      Re: this program cannot be run in dos mode
      « Reply #3 on: August 19, 2017, 12:59:40 PM »
      Thank you for replying. But how would I get a 16 bit version of attrib?
      From the MS-DOS install disk set. It's on Disk 1 I think.


      « Last Edit: August 19, 2017, 01:09:49 PM by Salmon Trout »

      patio

      • Moderator


      • Genius
      • Maud' Dib
      • Thanked: 1769
        • Yes
      • Experience: Beginner
      • OS: Windows 7
      Re: this program cannot be run in dos mode
      « Reply #4 on: August 19, 2017, 01:26:47 PM »
      Correct...
      " Anyone who goes to a psychiatrist should have his head examined. "