Autor Beitrag
Christoph Englmann
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 276



BeitragVerfasst: Di 10.01.06 14:32 
Hallo,

will den Dos Befehle

'call Run.bat 8323 002 H:\001'

im Verzeichnis
'c:\TRAFFIC\Maxim\'

ausführen.

dazu hab ich zuerst das Arbeitsverzeichnis mit
ausblenden Delphi-Quelltext
1:
  SetCurrentDir(c:\TRAFFIC\Maxim\);					

gesetzt und dann den Befehl
ShellExecute(Application.Handle,'open','command.com','call Run.bat 8323 002 H:\001','c:\TRAFFIC\Maxim\',SW_NORMAL);
ausblenden Delphi-Quelltext
1:
2:
  ShellExecute(Application.Handle,'open','command.com','call Run.bat 8323 002    
                       H:\001'
,'c:\TRAFFIC\Maxim\',SW_NORMAL);


=> es öffnet sich ein DOS Fenster in welchem das Arbeitsverzeichnis auch auf c:\TRAFFIC\Maxim\ gesetzt ist. Doch das ist auch alles, sprich der Call Befehl mit den PArametern wird nicht abgesetzt...

hab schon viel im forum gestöbert, aber leider keine hilfe gefunden....

hilfe...danke

christoph
Tastaro
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 414
Erhaltene Danke: 23



BeitragVerfasst: Mo 16.01.06 10:33 
Huhu,

probier doch mal

ausblenden Delphi-Quelltext
1:
2:
ShellExecute(Application.Handle,'open','command.com call Run.bat 8323 002
   H:\001'
, nil, 'c:\TRAFFIC\Maxim\',SW_NORMAL);


oder

ausblenden Delphi-Quelltext
1:
2:
ShellExecute(Application.Handle,'open','command.com Run.bat 8323 002      
   H:\001'
, nil, 'c:\TRAFFIC\Maxim\',SW_NORMAL);


Beste Grüße
Tastaro