Register for your free account! | Forgot your password?

You last visited: Today at 21:56

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Frage

Discussion on Frage within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 120
Join Date: Mar 2009
Posts: 3,409
Received Thanks: 1,738
Frage

Ich versuche mich seit neustem etwas mit c++

Habe versucht halt über 'ne exe irgendein beliebiges Programm zu starten, in diesem Fall eine leere Textdatei (zum Testen).

PHP Code:
#include <iostream>
using namespace std;
void main ( )
{

        
system("cd C:/123");
        
system("start dd.txt");


Pfad ist erstellt usw.
Wenn ich die exe starte, öffnet sich normal die cmd.exe, dann wird mir aber gesagt, dass die Datei nicht gefunden werden konnte.

Ich hoffe mir kann einer von euch helfen


MfG Remix
.Remix is offline  
Old 09/07/2012, 19:32   #2
 
elite*gold: 0
Join Date: Jul 2010
Posts: 388
Received Thanks: 196
Code:
system("start C:\\123\\dd.txt");
SmackJew is offline  
Thanks
1 User
Old 09/08/2012, 13:16   #3


 
MrSm!th's Avatar
 
elite*gold: 7110
Join Date: Jun 2009
Posts: 28,904
Received Thanks: 25,394
Erlaubt Windows nicht beides "/" und "\" für Pfadangaben? oO
MrSm!th is offline  
Old 09/09/2012, 13:34   #4
 
.SkyneT.'s Avatar
 
elite*gold: 273
Join Date: Sep 2010
Posts: 1,831
Received Thanks: 786
Quote:
Originally Posted by MrSm!th View Post
Erlaubt Windows nicht beides "/" und "\" für Pfadangaben? oO
Ja, tut es.
Der Fehler lag ja auch wohl eher hier:
Code:
system("cd C:/123");

Btw:
Code:
void main ( )
:<
Gewöhn dir "int main ()" an.
.SkyneT. is offline  
Reply


Similar Threads Similar Threads
Frage zu Bot machen-Maus Frage-Button Frage
02/16/2012 - AutoIt - 10 Replies
Hallo, Elitepvpers hat echt für alles ein Ort :D Geil. Also...Bin AutoIt anfänger. Ich bin dabei ein Bot für das Online Game Runescape zu machen. Ich hette 2 Fragen(FÜR DEN MOMMENT :) ): Kann ich machen das AutoIt inaktiv die Maus benutzt,also werend der Bot läuft das ich bzw. man im Internet surft oder was anderes macht`?



All times are GMT +2. The time now is 21:56.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.