Hi Jay, > exec { 'ExecCreatedFolder': > command => "mkdir C:\PuppetOrdner\ExecCreatedFolder", > }
mkdir is a command implemented by the windows command processor cmd.exe, not a callable program. http://docs.puppetlabs.com/references/stable/type.html#exec states that the Windows provider can only call executables instead of giving commands to a shell. That said, have you tried something like 'command => "cmd /c mkdir c:\test"' ? Also, I hope you bring up mkdir purely for the sake of discussion, since file { 'C:/test': ensure => directory } works for creating directories. Cheers, Paul -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/Ih2d0TjkOYAJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.