Autor Beitrag
patrick
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Fr 27.12.02 13:13 
ich habe ein dos-prog (nicht von mir, ich will im nur ein gui zusammenschustern).
dabei werden unter mehrere parameter an das dos-prog gesendet. darunter auch ein dateipfad.
nun hab ich folgendes problem:
wenn in dem pfad ein leerzeichen vorkommt deutet das programm dies als parameteranweisungsende.
also statt
ausblenden Quelltext
1:
dosprogramm.exe -a -b -c C:\eigene dateien\test.dat					

wir nur der wert
ausblenden Quelltext
1:
dosprogramm.exe -a -b -c C:\eigene					

übernommen.
ich hab es auch schon mit der formatierung von leerzeichen in %20 versucht aber das funktioniert auch nicht!

gibt es da andere möglichkeiten??

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Fr 27.12.02 13:20 
Übergebe den Pfad in Anführungszeichen an das Programm und schon sollte es funktionieren.
patrick Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 1481

WIN2k, WIN XP
D6 Personal, D2005 PE
BeitragVerfasst: Fr 27.12.02 15:58 
meeeennsch und ich mach mir da n kopf!!!


THX!!

_________________
Patrick
im zweifelsfall immer das richtige tun!!!
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Fr 27.12.02 16:27 
Dazu ist der Kopf doch da. Aber ist ja schön das ich Dir helfen konnte.