I have a file share, and I want a process which enumerates files on that share and automatically creates a 7z self-extracting exe of files over 1 month old. On a different share, I want to create a 7z self-extracting exe of directories that are over 1 month old. Any idea if there is a program which can do this? I already have
7z a -t7z -mx9 -sfx filename.exe filename.txt
Portion of it, just need more of the auto-management portion.
Running on Windows Server 2008, yes, PowerShell is available. Cygwin would not be an option.
I ended up doing this with a batch file, and setting it to run via Task Scheduler. Here is the batch file if anyone is interested:
Looks like he's running windows guys. (.exe)
Create a shortcut or batch file that runs the command, and then run the shortcut or batch file from Windows Task Scheduler.