Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

Calling EXEs in C++

Name: Anonymous 2007-05-30 0:59 ID:2hzmSat3

Hi

Is there a way to call an EXE in C++ if it's on a CD-ROM or DVD-ROM? the drive letters aren't the same in every computer so I need to know if there's a way to do it.

Name: Anonymous 2007-05-30 1:06 ID:vEanfM1E

no

Name: Anonymous 2007-05-30 4:12 ID:14Buov6o

system("wine /mnt/cdrom/lolvirus.exe");

Name: Anonymous 2007-05-30 4:47 ID:2vWAskpZ

>>3
In c++

Name: Anonymous 2007-05-30 5:08 ID:ajcaDIIE

>>4

std::system("wine /mnt/cdrom/lolvirus.exe");

Name: Anonymous 2007-05-30 6:09 ID:vEanfM1E

just link the exe to your program when you compile and call it via its name e.g. if the exe is called lolvirus.exe use lolvirus.exe() in your C++.

Name: Anonymous 2007-05-30 20:34 ID:Heaven

>>5
Get a real operating system.

Name: Anonymous 2007-05-31 17:18 ID:Rf+BUcwC

>>5
Fucking lols. I hate namespaces.

Name: Anonymous 2007-05-31 17:53 ID:/HooI5PQ

std::string drive;std::cout.operator<<("CD ROM DRIVE = ???");std::cin.operator>>(drive);system(drive + "LOLEXE.EXE");

Name: Anonymous 2007-06-01 9:00 ID:W1H3uU86

>>8
std::Fucking lols. statement::I hate namespaces.

expert::Fixed!

Name: Anonymous 2007-06-01 10:01 ID:J9JYCIL5

>>8

PROTIP: To use namespaces correctly, add an "using", "import", etc, statement at the beginning of the code

Name: Anonymous 2007-06-01 10:28 ID:Heaven

Name: Anonymous 2007-06-01 10:58 ID:Heaven

GNU/std::libc++

Name: Anonymous 2007-06-01 17:15 ID:Heaven

exec* family
man exec

Name: Anonymous 2007-06-01 17:49 ID:pqpMrGRh

>>5
lol'd hard

Name: Anonymous 2009-01-14 14:32

Use Linux
Problem Solved

Name: Anonymous 2011-02-04 16:51

Name: Sgt.Kabu论殖kiman㊒ 2012-05-29 2:34

Bringing /prog/ back to its people
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy
All work and no play makes Jack a dull boy

Don't change these.
Name: Email:
Entire Thread Thread List