Toon posts:

[2k] Batched logfile maken die niet overschrijft *

Pagina: 1
Acties:

Verwijderd

Topicstarter
Via het onderstaande stukje batchfile wordt er een logfile gemaakt en user informatie weggeschreven.
Alleen nu heb ik het probleem dat er geen regel toegevoegd maar vervangen wordt, hoe kan ik dit oplossen ?

echo %username% %date% %time% Backupschijf ontkoppeld > test.log

  • elevator
  • Registratie: December 2001
  • Niet online

elevator

Officieel moto fan :)

Welke Windows versie gaat het hier over danwel welke DOS versie? :)

Verder, in plaats van één > twee :)

Verwijderd

Topicstarter
elevator schreef op zaterdag 12 november 2005 @ 15:41:
Welke Windows versie gaat het hier over danwel welke DOS versie? :)

Verder, in plaats van één > twee :)
Het gaat om windows 2000

  • F_J_K
  • Registratie: Juni 2001
  • Niet online

F_J_K

Moderator CSA/PB

Front verplichte underscores

Zie zijn tweede zin voor je antwoord ;)

F1 zegt er trouwens het volgende over:
Redirection operator Description
> Writes the command output to a file or a device, such as a printer, instead of the Command Prompt window.
< Reads the command input from a file, instead of reading input from the keyboard.
>> Appends the command output to the end of a file without deleting the information that is already in the file.
etc
offtopic:
Titeledit per het WOS policy. Zie ook alle andere topictitels in WOS ;)

'Multiple exclamation marks,' he went on, shaking his head, 'are a sure sign of a diseased mind' (Terry Pratchett, Eric)