I'm not sure what catagory this question goes into.... I am using a DOS program to run a Windows one with START.EXE (found in C:\WINDOWS\COMMAND\) but I can't find it in Windows XP. Is there an equivelent function /application in XP? Thanks
I'm not sure what catagory this question goes into.... I am using a DOS program to run a Windows one with START.EXE (found in C:\WINDOWS\COMMAND\) but I can't find it in Windows XP. Is there an equivelent function /application in XP? Thanks
Kree'ta Tau'ri! Chaapa'ai!
use the ShellExecute() function, in the windows.h file
"There are three kinds of people in the world...
Those that can count and those that can't."
Not that I have any useful advice for Unimatrix, but I can say that Okiesmokie's wouldn't be much use in a DOS program. Unimatrix, you may have heard people say things like "my dos programs just don't work right in windows XP" and "XP doesn't fully support dos." Well now you know what they mean.
ShellExecute doesnt work in DOS?
ShellExecute(NULL, "open", "C:\\blah\\execute.exe", NULL, "C:\\blah\\", SW_SHOW);
"There are three kinds of people in the world...
Those that can count and those that can't."
ShellExecute() is in shell32.dll so it is actually run from windows. So it wouldn't be dos compatible. But you should follow Okiesmokies advice nonetheless. The downside is that you are going to have to abandon the dos program. Sorry there isn't another way. Unless you make your own program called START.EXE that uses ShellExecute() or CreateProcess() to spawn programs.
Thanks Master5001 and Okiesmokie - I guess I'll have to make my own like u suggested! I hate windows but peeps who will use my program prob. wont - Thats my problem!! Thanx again
Kree'ta Tau'ri! Chaapa'ai!
Greetings,
I think 'start' is an internal command in Win2k and WinXP, like 'dir', so you won't find the file 'start.exe', but you can still execute programs with 'start <prog name>'.
Thanks, unreg! It is an internal command - thats made my life a lot easier!!
Kree'ta Tau'ri! Chaapa'ai!