1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Why does this old DOS program work?

Discussion in 'Windows XP' started by rusty2, 2006/07/30.

  1. 2006/07/30
    rusty2

    rusty2 Well-Known Member Thread Starter

    Joined:
    2003/04/07
    Messages:
    79
    Likes Received:
    0
    This is a strange question since I have solved my problem but can't imagine why it works.

    I have been trying to get an old DOS database to work on an XP machine. I discovered that it would work if run from a CD-ROM instead of from the hard drive. I'm no systems expert but I assume that it can't run on a drive as big as newer computers have. I created a CD with the program and the data. The batch file to run the program is on the C: drive and has an early command
    CD D:\progname (D: is the CD-DVD drive)
    The program and data are on both the CD and the C: drive.

    This worked. Then I took the CD to another XP machine to check that it would work there. When I came back to the first one I was surprised that the program still worked without the CD in it. I turned the computer off and on to make sure it was not in memory. It still worked. Why is that? The same occurred on the second computer. I got btrieve errors when I tried to run from the hard drive before creating the CD, but now with the batch file saying cd D: it works even if D: is empty.

    Stumped
     
  2. 2006/07/31
    rambler

    rambler Inactive

    Joined:
    2003/03/08
    Messages:
    85
    Likes Received:
    0
    I'd need to see the entire batch file to be entirely sure, but it would seem your program is running off the hard drive if the batch file is run.

    The CD D:\progname command changes the current directory for drive D, but without a command to change the current drive, that will remain as C, and ITS current directory is of course, unchanged.
     

  3. to hide this advert.

  4. 2006/07/31
    rusty2

    rusty2 Well-Known Member Thread Starter

    Joined:
    2003/04/07
    Messages:
    79
    Likes Received:
    0
    Of course. Shows how long it is since I've used DOS. Now I'm totally stumped as to why I got error messages before but not since I thought I was running from the CD. I suppose that I could recover the old directories from the recycle bin and play with them, but is it worth the bother since everything works now?

    Many thanks for your explanation.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.