You can do this with a simple dos command:
Click on the Start Menu, go MS-DOS prompt then type in
cd (path to your files)
rename *.* *_001.tif
You will probably need to play around with this but that is basicaly what you need to do :)
Borland sticks to the standard more so when you start to become advanced in C++ you will not be some screwed up C++ programmer :)
That happened to me. I learnt on Visual C++ and when I tried compiling my programs on other compilers I got a thousand errors :( Luckley im starting to recover...
If your program is compiled then go into notepad and enter the name of your program then save the file as autoexec.bat on the floppy disk, make sure you change the File type to Any file NOT! .txt or it wont work, then copy your program onto the floppy.
If your program is not compiled and just...
If you want to access a non Qbasic application then you will have to use system() or learn ASM :P
If you want to display directory contents try:
sysmem ("dir > output.txt")
this will save all output from the dir command into output.txt
you can then load output.txt and display it :)
Opps i forgot some thing, Since you said you are using Qbasic you will need an interpretor, i have the Qbasic4.5 source on my computer but it wont help you very much since you will need to make your OS specific calls.
Its quite easy. You must simple load the executable into memory using BIOS calls as follows.
mov ah, 02h
mov al, 01h
mov ch, 0h
mov cl, 2h
mov dh, 0h
mov dl, 1h
mov bx, 1000h
int 13h
This will load the second sector from the disk and place it at memory possition 1000h. There is no error...
In most compilers you can convert it to Assembly in Borland Free compiler you can do bcc32 -S filename.cpp
I would of converted your code but your missing some type defs.
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.