
$EXEFiles = Get-ChildItem -Path "" -Filter *. So, I read and then created the following PowerShell script which did what I wanted: $RARFile_Path = "C:\Program Files\WinRAR\Rar.exe" I found that WinRAR itself is capable of editing the archive comment: It seems that it isn't really possible to edit file comments in modern versions of Windows. How to edit the (metadata) "comments" field of a folder? but that's for folders, not files.but File Meta didn't seem to work - the exported XML file always only contained.PowerShell commandlets like Get-ItemProperty don't seem to get comments.Windows file "comment" attribute with no answer. To start up the process, first, you have to make sure the software WinRAR is installed on your computer.This is good for security but broke my portable apps so I need to mass edit the EXE files' comments / SFX scripts replacing init.bat with cmd.exe /k init.bat.Īfter much Googling, all I have found is: Upon launching Cameyo, it takes a snapshot of your system, asks you to install the application that you want to see as portable, and then takes the snapshot of the system to create portable applications.

Cameyo is a free application designed to create portable applications to run programs from anywhere. bat with Notepad so that they cannot be directly executed. All you need is a free program called Cameyo. In the cases where 32-bit / x86 and 64-bit / 圆4 versions are available, I use init.bat to dynamically choose which to run depending on the execution environment.įor Cyber Essentials Plus compliance reasons, Group Policy was configured to associate the file extension. I create custom portable versions of apps using WinRAR's SFX module (among other things, the setup option Run after extraction).
