Dobrý den, potřebuji, aby se při splnění podmínky otevřel externí soubor (konkrétně *.avi). Jak na to? Díky...
Fórum › C / C++
Jak v C++ spustit externí soubor?

Jo, dělám to v CMD okně... Ale pořád to nejde:-( Kompilátor vypisuje:
spusteni_souboru.cpp:5:38: warning: unknown escape sequence '\s'
spusteni_souboru.cpp:5:38: warning: unknown escape sequence '\i
Dávám sem kompletní kód programu...
#include<iostream>
using namespace std;
int main()
{
system("D:\softwware\vlc\vlc.exe D:\it_crowd\the.it.crowd.s02e04.ws.pdtv.xvid-river.avi");
cin.get();
cin.get();
return 0;
}
#include<iostream>
using namespace std;
int main()
{
system("D:\\softwware\\vlc\\vlc.exe D:\\it_crowd\\the.it.crowd.s02e04.ws.pdtv.xvid-river.avi");
cin.get(); cin.get();
return 0;
}
skus zdvojiť lomítka
Ja se chci zeptat že já mam cestu :
#include<iostream>
using namespace std;
int main()
{
system("D:\\Program Files\\Winamp\\Winamp.exe D:\\Users\\Jenda\\Music\\bbd.mp3");
cin.get(); cin.get();
return 0;
}
Jestly to neni kuli tý mezere mezi tim ,pls poradte
Ahoj, chtěl bych se taky zeptat kdybych chtěl spustit jiny program např.: Opera jak bych to měl napsat. Zkoušel jsem to ale nefukgovalo mi to zdrojak viz dole....
#include<iostream>
using namespace std;
int main()
{
system("C:\Program Files\Opera\opera.exe");
cin.get(); cin.get();
return 0;
}

Přidej příspěvek
Ano, opravdu chci reagovat → zobrazí formulář pro přidání příspěvku
×Vložení zdrojáku
×Vložení obrázku
×Vložení videa
































Uživatelé prohlížející si toto vlákno
Podobná vlákna
Jak spustit exe soubor v HTML — založil Birisek
C# Form App-Jak spustit soubor — založil nevimjakejmeno
Externí .js soubor. — založil Montezo
Externí soubor — založil šachy
Xamarin - Nastaveni prav a authority na externi soubor v android API… — založil VladislavK
Moderátoři diskuze