Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

This may be a nubish question, but I am Googling around for this and do not see the answer so far. Take the following command:

at 12:00 /EVERY:Su Forfiles.exe -p C:\inetpub\logs\LogFiles\W3SVC1 -m *.log -d
-30 -c \"Cmd.exe /C del @path\"

I know what the expected behavior of this overall command is, and I know what each part of it is doing - except for the "@path\" thing. Googling it isn't turning up results so far. What does this mean? I'm running Windows Server 2008 R2. Thanks!

share|improve this question
up vote 1 down vote accepted

@path - returns the full path of the file,

In general is the removal of the Log Folders IIS server, but why?)))

run at cmd (Windows 2008 R2):

Forfiles -p C:\inetpub\logs\LogFiles\W3SVC1 -m *.log -d -30 -c "cmd /C @echo @path"
Forfiles -p C:\inetpub\logs\LogFiles\W3SVC1 -m *.log -c "cmd /C @echo @path"

run at cmd Windows 7 as sample:

Forfiles -p %windir%\inf -m *.inf -c "cmd /C @echo @path"
Forfiles -p %windir%\inf -m *.inf -d -30 -c "cmd /C @echo @path"
share|improve this answer
An output of these commands might be useful to prove your point, at least an abbreviated one. – KronoS May 6 '13 at 17:36
@KronoS If possible, to edit my post for a better view, thanks. – STTR May 6 '13 at 17:52
Thanks. The reason I was wanting to get rid of them is that the space that folder takes up can get pretty ridiculous over a period of time. – Panzercrisis May 6 '13 at 19:10
@Panzercrisis Perhaps the best idea will seem compress files for subsequent removal. Glad I could help you. – STTR May 6 '13 at 19:26

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.