Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Writing a CD autorun.exe

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Im trying to write a cd autorun in vc++ but i can't seem to find, remember(?!?!) the command to open the file, program, that i want, you know you click the button and it opens up the new app.
whats the line of code im missing thanks
 
Have a look at the WinExec function - that sounds like what you're after...

 
The function 'ShellExecute' can be very useful too,it can be use with the following syntaxe:

ShellExecute(handle, NULL, path_to_file, NULL, NULL, SW_SHOWNORMAL);
 
the ShellExecute command, what variable am i supposed to replace handle for?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top