Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to create a folder in the name which stored in the variable? (windows)

I stored the folder name in variable . Then i use that variable in my manifest to create a folder. But it create folder in the name of variable name not what is in that variable.

Eg:

       class currentgen::backup::folder_backup
      ($prodequ_backup_loc        = $prodequ_backup_loc,
       $time=yoga,
       )
       inherits currentgen{
                  exec{"current date time folder":
                           cwd=>"${prodequ_backup_loc}",
                           command=>'C:\Windows\System32\cmd.exe /c "md $time"',
                          }

above code create the directory name of "$time".