Autor Beitrag
_Joe_
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Arch Linux/XP
VS2008 Prof.,Codeblocks
BeitragVerfasst: Mo 03.08.09 14:37 
Hallo,

ich stelle mich zu blöd an :).

ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
 public void write(string _string)
 {
     StreamWriter myFile = new StreamWriter(sFilename);
     myFile.Write(_string);
     myFile.Close();
 }


ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
 public void append(string _string)
 {
     StreamWriter myFile = new StreamWriter(sFilename, true);
     myFile.Write(_string);
     myFile.Close();
 }


ausblenden C#-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
 private void autostart_Click(object sender, EventArgs e)
 {
    _settings.write(textBox_minuten.Text + " ");
    foreach (Process p in _startProcess.getProcessList())
    {
          print_log(p.StartInfo.FileName);
          _settings.append(p.StartInfo.FileName + " ");
    }
 }


p.StartInfo.FileName = "C:\\Dokumente und Einstellungen\\Joe\\Desktop\\HelloWorld.cmd"

Das ganz wird nur nicht geschrieben :(. Ich hab auch mal probiert ein @ davor zu setzen bringt aber kein Erfolg.
Kha
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 3803
Erhaltene Danke: 176

Arch Linux
Python, C, C++ (vim)
BeitragVerfasst: Mo 03.08.09 15:01 
Es kommt kein Fehler? sFilename hat den korrekten Wert?

_________________
>λ=
_Joe_ Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 47

Arch Linux/XP
VS2008 Prof.,Codeblocks
BeitragVerfasst: Mo 03.08.09 15:21 
jop sFilename ist überall gleich, die Minuten werden korrekt geschrieben wenn kein Process vorhanden ist

*edit*
das schreiben in eine TextBox geht auch ohne Probleme