Jump to content

gillwadep

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by gillwadep

  1. Hi thanks ill give that a go. thanks for your help, I though i needed the echo in to make it list content in the file...
  2. Hi i am trying to write a script using forfiles to delete some files older than 5 days, list what i have delted and output it to a file. but it dosent seem to work here is what i am using. forfiles /p c:\windows\system32\logfiles /s /d-5 /c "cmd /c echo @patH @filE & cmd /c del @file" > c:gill-delte.txt Im not any good at this so any help would be gratefully received. thanks in advance
  3. Hi i need to delete files using forfiles which works fine but i need it to list the results, my command just seems to delete the files here is what i have used forfiles p c:\windows\system32\logfiles s d -5 /c "cmd c del @FILE" what do i need to put on the end to list the results I am new to using forfiles so sorry if i seem a bit stupid thanks
×
×
  • Create New...