START.EXE in Windows XP

This is a discussion on START.EXE in Windows XP within the Windows Programming forums, part of the Platform Specific Boards category; I'm not sure what catagory this question goes into.... I am using a DOS program to run a Windows one ...

  1. #1
    Registered User Unimatrix139's Avatar
    Join Date
    Jun 2002
    Posts
    55

    Question START.EXE in Windows XP

    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!

  2. #2
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    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."

  3. #3
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    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.

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    387
    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."

  5. #5
    Banned master5001's Avatar
    Join Date
    Aug 2001
    Location
    Visalia, CA, USA
    Posts
    3,685
    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.

  6. #6
    Registered User Unimatrix139's Avatar
    Join Date
    Jun 2002
    Posts
    55

    Talking Thanx!

    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!

  7. #7
    Unregistered
    Guest
    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>'.

  8. #8
    Registered User Unimatrix139's Avatar
    Join Date
    Jun 2002
    Posts
    55

    :D start

    Thanks, unreg! It is an internal command - thats made my life a lot easier!!
    Kree'ta Tau'ri! Chaapa'ai!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 4
    Last Post: 04-29-2006, 02:35 AM
  2. Program works on Windows XP and 2000, not on 98 or ME
    By MidnightlyCoder in forum C++ Programming
    Replies: 7
    Last Post: 03-10-2006, 03:36 PM
  3. Virtual keys
    By Arkanos in forum Windows Programming
    Replies: 4
    Last Post: 12-12-2005, 10:00 AM
  4. Help coding in Windows XP
    By zoanoid13 in forum Windows Programming
    Replies: 1
    Last Post: 02-24-2003, 09:07 PM
  5. windows xp and aol (im's)
    By rickc77 in forum A Brief History of Cprogramming.com
    Replies: 11
    Last Post: 10-26-2001, 07:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21