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!


@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"
  • An output of these commands might be useful to prove your point, at least an abbreviated one. – James Mertz 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
  • 1
    @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 clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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