You are not logged in.

Dear visitor, welcome to AnnoZone Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

morphesus

Ausguck

Posts: 80

Date of registration: Aug 30th 2012

  • Send private message

21

Wednesday, October 31st 2012, 11:36am

Ach iwo :) Parameter hast du schon verwendet, du weißt es nur noch nicht ;)
Wenn du in der CMD ein Programm aufrufst, dann kannst du Parameter übergeben.
Hier ein Beispiel:

Source code

1
C:\Windows\explorer.exe

Das ist ein ganz simpler Aufruf eines Programmes - nichts besonderes.
Aber schau mal hier:

Source code

1
C:\Windows\notepad.exe C:\MeineDatei.txt

Da übergibst du beim Programmaufruf einen Parameter - die zu öffnende Datei. Jetzt öffnet sich Notepad und liest auch gleich die Datei ein, dessen Pfad du beim Aufruf übergeben hast.

Eigentlich ganz einfach ;)
Grüße - Morph 8)

Ba´al

Steuermann

  • "Ba´al" started this thread

Posts: 149

Date of registration: Jan 24th 2012

  • Send private message

22

Friday, April 19th 2013, 6:58pm

cool Habe ich nicht gewusst, sehr hilfreich. kann ich das eig. auch in der Batch anzeigen was also in der .txt datei steht?
  Kompanie vorwärts...