A very little help please.....

N

Nuubee

Would anyone here be so kind as to post the code to a simple, command line
C++ application that would take a single string parameter as input (will be
a filename - maybe with full path or just a filename if file resides in same
directory as the launching C++ exe) and launches that file.

The file to be launched may be a WAV or MP3 or WSH script or whatever. The
filename passed in as the sole parameter to the exe may be simply a file's
name (MyFile.???) or may have the full path (C:\Program
Files\MyFileSir\MyFile.???) specified.

The C++ app should run on every Windows OS from Win98 to 2003 and should
compile with Visual Studio 2003 as unmanaged code (so as to not burden the
app unnecessarily with .Net framework stuff).
 
J

Jim Hubbard

Found it!

http://www.planetsourcecode.com/vb/scripts/ShowCode.asp?txtCodeId=184&lngWId=3


Nishant Sivakumar said:
Can't you use start.exe (it existed since 98 I believe) ?

--
Regards,
Nish [VC++ MVP]
http://www.voidnish.com
http://blog.voidnish.com


Nuubee said:
Would anyone here be so kind as to post the code to a simple, command
line C++ application that would take a single string parameter as input
(will be a filename - maybe with full path or just a filename if file
resides in same directory as the launching C++ exe) and launches that
file.

The file to be launched may be a WAV or MP3 or WSH script or whatever.
The filename passed in as the sole parameter to the exe may be simply a
file's name (MyFile.???) or may have the full path (C:\Program
Files\MyFileSir\MyFile.???) specified.

The C++ app should run on every Windows OS from Win98 to 2003 and should
compile with Visual Studio 2003 as unmanaged code (so as to not burden
the app unnecessarily with .Net framework stuff).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top