Thanks KrAzY CrAb I'll check it out :D
Type: Posts; User: Unimatrix139
Thanks KrAzY CrAb I'll check it out :D
I'm attempting to add an autorun-style feature to my text-based OE. Basically, while it's waiting for character to be typed it'll call a subroutine that checks for autorun.inf on drive D: (or...
This may be stupidly wrong and totally invalid, but have you tried this?
#include <stdio.h>
main()
{
printf("\a");
}
Thanks manwhoonlyeats - thats exactly what I was looking for!
I was going to use system() to actually call the command and find a way to specify boundaries for the data written to the screen by DOS, but the file method seems better. I'll try that. Thanks!
I am creating an operating environment to run over DOS - There is a command prompt - type interface to the left and a simplistic GUI to the right. I have adapted the command-prompt interface to keep...
Don't you have to remove all entities within the directory before it can be remove it? Maybe you could use findfirst(); and findnext(); coupled with chdir();, remove(); and rmdir(); to find and...
Oic - sorry, i guess I'm a bit dumb!! thanks
This may be a stupid question, but how do I change te text above my avatar from 'member' 2 something else?
Try replacing EOF with NULL - that always works for me :D
It has to be the best sci-fi in the whole of ever! lol
I've figured out ways to detect if windoze exists on the root of HDD C, but not if it is active :(
#include <string.h>
#include <io.h>
#include <direct.h>
#include <dos.h>
FILE *fp;
Does anyone have any idea how to access LFNs from pure DOS? I know it's possible but don't know how. I have found some stuff on Google already and I didn't understand :D any ideas? Thanks
LPT1 and PRN are pretty much identical - LPT1 is the id for Parallell port 1 and PRN is the default parallell port (almost always LPT1) - Anyway, I don't think you can address LPT1 from C with...
Thats a relief - Thanks people! :D
I'm not exactly a C wizard, and I can't program using ports. I'd write all the data to a file and use:-
system("copy file.ext prn");
or
system("type file.ext >prn");
Basically this is...
I've been producing an operating environment for about 3/4 of a year and after reading all these posts about similar things I'm not sure if my command-line interface has any point anymore. Would...
I was refering to Shadow's post about Win32 applications in DOS, although after re-reading my post i suppose it doesn't make much sense - It must have done at the time :D when refering to 'DOS XP' I...
Yeah, but it's just compatibility code; if my app detects XP it'll use this code otherwise it won't :D just trying to please everyone who could use my app!
system("cmd.exe /c START C:\\WINDOWS\\NOTEPAD.EXE C:\\ATXT.TXT");
It works!! Thanks everyone!
I've tried using SYSTEM(); with both \ and \\ and both give the Bad command of file name error - I was wondering maybe if SYSTEM(); isn't compatible with XP?
Good idea - i'll re-write both of them with loops instead. Thanks Salem and Prelude :D
Its just an example of what me program does. The real thing goes like this:-
prompt()
{
char buffer[1000];
int i;
if(promptr!=NULL)
{
If I define a variable in a procedure, can I call the procedure again and again without problems? I am using code like this:-
void func02()
{
char buffer[700]
strcpy(buffer,...
I am running my DOS application under Windows XP. I am using the following line of code to open ATXT.TXT with NOTEPAD.EXE. START is an internal command in DOS XP (thanx to an 'Unregistered' for that...