logs
using exec since we don't have tidy for windows yet
{code}
exec { 'CleanupOldUninstallDirs':
command => 'C:\Windows\system32\forfiles.exe -p "C:\Windows" -m
"$NtUninstall*" -d -65 -c "cmd /c dev /F /S /Q @path"',
}
exec { 'CleanupOldPatchLogs':
command => 'C:\Windows\system32\forfiles.exe -p "C:\Windows" -m
"KB*.log" -d -365 -c "cmd /c dev /F /S /Q @path"',
}
{code}
runs correctly debug output below
[image: Inline image 1]
however, files are not deleted, as evidenced by running the same forfiles
at the command line
[image: Inline image 2]
yet the forfiles with delete works if I run it from the windows command line
Suggestions? Bug?
--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.