Solved

Extended filename file operations programming in DOS mode

Posted on 2006-10-24
13
290 Views
Last Modified: 2010-04-16
I want to be able to copy FAT16/FAT32 files created in Win9x after booting to DOS with a DOS boot disk or Console Mode using a Win9x boot disk. This is primarily for upgrading hard drives in Win9x PCs. I think it is possible but not sure what tools to use to create such a program. My efforts so far have resulted in problems like (i) only 8.3 filenames supported, & (ii) program developed in Win9x IDE will not run in DOS mode. Any comments appreciated.
0
Comment
Question by:tkonan
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 5
13 Comments
 
LVL 22

Accepted Solution

by:
cookre earned 250 total points
ID: 17800576
For pure DOS, you'll need 16-bit real-mode code.  There may be others, but the only compiler/linker I know of that's readily available for that is Digital Mars:

http://www.digitalmars.com/

Pay special attention to the 16-bit guidelines:
http://www.digitalmars.com/ctg/win32programming.html#win16
0
 

Author Comment

by:tkonan
ID: 18010106
Yeah thanks for that cookre. Will get to it when i can.
0
 

Author Comment

by:tkonan
ID: 18012369
So are we talking about using the C/C++ or D compiler?

The license agreement says that the C/C++ compiler is 'not designed to operate after December 31, 1999', 'has not undergone testing' and also that 'It may be incomplete and it may not function properly'.

I guess that means i'd better include a verify command in my application.

:/
0
Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

 
LVL 22

Expert Comment

by:cookre
ID: 18012745
My guess is they didn't want to deal with Y2K.
0
 

Author Comment

by:tkonan
ID: 18053238
ok. do you know if it is possible to use msvc++ to create this app?
0
 

Author Comment

by:tkonan
ID: 18053263
version 6 that is
0
 
LVL 22

Expert Comment

by:cookre
ID: 18056080
Alas, the last 16-bit compiler from MS was VC 1.52

Try this one - it claims to generate 16-bit code:
http://www.openwatcom.org/index.php/Main_Page
0
 

Author Comment

by:tkonan
ID: 18058860
i am guessing 'real-mode' means a program that fits into the 640K memory block and therefore would need to specify a compatible memory model. However, when i do this with digital mars C/C++ compiler, the linker tells me a library is missing. Does this mean I would only be able to do it with the full version? could i not just specify the memory model in the ms linker?
0
 
LVL 22

Expert Comment

by:cookre
ID: 18064377
You would normally specify the memory model to the compiler, either with a command line option or a #define.

Unfortunately, it would appear that the documentation is only on the CD version.
0
 
LVL 22

Expert Comment

by:cookre
ID: 18064455
I found this old thread:
http://www.experts-exchange.com/Programming/Q_20666684.html?query=%22digital+mars%22&clearTAFilter=true

compiler option -ml for large memory model, -ms for small.




If you can't get DM working, try DJGPP:
http://www.delorie.com/djgpp/


0
 

Author Comment

by:tkonan
ID: 18084324
i think the memory model also may only be on the cd version
0

Featured Post

Optimize your web performance

What's in the eBook?
- Full list of reasons for poor performance
- Ultimate measures to speed things up
- Primary web monitoring types
- KPIs you should be monitoring in order to increase your ROI

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Computer science students often experience many of the same frustrations when going through their engineering courses. This article presents seven tips I found useful when completing a bachelors and masters degree in computing which I believe may he…
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

630 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question