CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 10 of 10
  1. #1
    Xeon's Avatar
    Xeon is offline Want me to ban you?! Power Poster
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    4,195

    Talking Running a MS-DOS program?

    Now, suppose I've a MS-DOS program.
    How do I run it? Double-click on it? It doesn't seem to work, that's why.

    Please and thanks a lot!

    *PS* : At this time of typing, the Codeguru General Discussion software says that there's currently 4 users browsing this forum : Marina Vaillant, Irona20, Saturno7 and Xeon.

    See the pattern? Yes : 3 girls and 1 boy.
    "Hell is calling for you!" - Rufus, from Valkyrie Profile 2 : Silmeria

    "I'm getting tired of you devils.....finishing strike......Final Blast!" - Arngrim, from Valkyrie Profile 2 : Silmeria

  2. #2
    Join Date
    Nov 2002
    Location
    Madrid, Spain
    Posts
    24
    Xeon, I'm not sure at all, but I think you need to open a command window, get into the directory were you placed the .exe file and call it.

  3. #3
    Xeon's Avatar
    Xeon is offline Want me to ban you?! Power Poster
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    4,195

    Talking

    Yes, I know....but really, I've tried this method but it seems to fail. I mean, the darn thing keeps giving 'Bad command or filename' when the file name is really valid.

    Now, you li'l girly, stand aside! I'm waiting for the big boys to help me. Anyway, please get a bath and go to bed. I've prepared a teddy bear for you to hug and some bedtime stories, you li'l baby girl.
    "Hell is calling for you!" - Rufus, from Valkyrie Profile 2 : Silmeria

    "I'm getting tired of you devils.....finishing strike......Final Blast!" - Arngrim, from Valkyrie Profile 2 : Silmeria

  4. #4
    Join Date
    Oct 2001
    Location
    lake of fire and brimstone
    Posts
    1,628
    Originally posted by Xeon
    Yes, I know....but really, I've tried this method but it seems to fail. I mean, the darn thing keeps giving 'Bad command or filename' when the file name is really valid.
    Is the file in the correct directory?
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞

  5. #5
    Xeon's Avatar
    Xeon is offline Want me to ban you?! Power Poster
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    4,195

    Talking

    Yes, it is!

    My file is in : C:\Program Files\My New Folder\My File.exe

    but the darn prompt in the MS-DOS window is always pointing to :

    C:\Windows>

    So, I just directly type something like :

    C:\Windows>C:\Program Files\My New Folder\My File.exe

    But it gave me a 'bad command or filename'! Drats!
    "Hell is calling for you!" - Rufus, from Valkyrie Profile 2 : Silmeria

    "I'm getting tired of you devils.....finishing strike......Final Blast!" - Arngrim, from Valkyrie Profile 2 : Silmeria

  6. #6
    Join Date
    Oct 2001
    Location
    lake of fire and brimstone
    Posts
    1,628
    Can't you just go to the folder where MyProgram.exe is located and type MyProgram there?
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞
    ۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞۞

  7. #7
    Join Date
    Sep 2002
    Location
    Belarus - Tirol, Austria
    Posts
    647
    Originally posted by Xeon
    C:\Windows>

    So, I just directly type something like :

    C:\Windows>C:\Program Files\My New Folder\My File.exe

    But it gave me a 'bad command or filename'! Drats!
    Crazy Xeon, your path contains "wait spaces" - ' ' , so u must write "C:\Program Files\My New Folder\My File.exe"
    in ""
    because otherwise it thinks that your filename is -C:\Program
    Last edited by dimm_coder; January 17th, 2003 at 10:03 AM.
    "UNIX is simple; it just takes a genius to understand its simplicity!"

  8. #8
    Join Date
    Feb 2002
    Location
    Makati City, Philippines
    Posts
    1,054
    I think it's the naming convention. remember that DOS uses only 8.3 name format. You have to find out what the DOS equivalent of your file (e.g.. something like "c:\progra~1\mynewf~1\myfile.exe")
    Marketing our skills - please participate in the survey and share your insights
    -

  9. #9
    Join Date
    Nov 2001
    Location
    Beyond Juslibol
    Posts
    1,688
    Why doesn't works just double clicking on it?

    Supposing you have XP...

    if it is an .exe did you tried to change the compatibility mode (right click->properties->compatibility)?

    Or if it is a .com did you tried to change the memory settings to "automatic" (right click->properties->memory)?

  10. #10
    Xeon's Avatar
    Xeon is offline Want me to ban you?! Power Poster
    Join Date
    Jul 2000
    Location
    Singapore
    Posts
    4,195

    Talking

    Thanks a lot, AIO, Dimm_Coder, Simon666 and Doctor Luz!

    Well, I've tried Dimm_Coder's solution and it's better now, but instead of giving me a 'bad command or file name' message, it says the file is too big to fit into memory.

    I've 512 MB of SDRAM and such, but this??!! It's only a 13 MB game that I downloaded from the Net....so, it's can't take up all 512 MB of physical RAM and all the virtual memory at one shot!

    So, maybe DOS can't run big programs bigget than 64 KB in file size? Thanks a lot!
    "Hell is calling for you!" - Rufus, from Valkyrie Profile 2 : Silmeria

    "I'm getting tired of you devils.....finishing strike......Final Blast!" - Arngrim, from Valkyrie Profile 2 : Silmeria

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured