Nouveau WinRAR Archive.rar
First, you should use $file.fullname instead of $path\$file, for better practice. And second, use rar.exe not winrar.exe to archive via command line, because rar.exe is a console application, and it does not release the script to continue to the next file until this file would be added to the archive. Also it might be needed to use & before rar.
Nouveau WinRAR archive.rar
So I was using discord this morning, and I clicked an image to enlarge it, I have no idea if its related since the image itself was innocuous, an no one else had the same issue with it, but at the same time I saw a program open and close at the bottom of my screen, and I thought "thats odd"suddenly, I find a winrar file in my images folder that was not there before, brand new, not made by me. no history if it in my downloads. filename "1543047551_preview_missingtexture", scanned it with a few programs before opening it, the only contents were a single image of one of those pink and black missing textures.I thought "that's very strange", I ran a malwarebytes scan and found 8 potential issues, attached the log below below.
ok, found another piece of the puzzlethe image in question was something I'd saved in my images folder a long time ago, had to scroll quite a bit before I found itgoing by the filesize, filename, and date, it is the exact picture in the winrar file. So for some reason, with no prompt, this image decided to package itself for no discernible reason
Changes for v5.71 - v5.801. "Preserve source files last access time" option on "Time" page of archiving dialog permits to preserve the original last access time of archiving files. 2. Command line -tsp switch can be used to preserve the original last access time of archiving files. It can be combined with other -ts switches, like: rar a -tsc -tsp arcname files 3. It is allowed to combine several modifiers in the same -ts switch. For example, we can use -tscap instead -tsc -tsa -tsp. 4. WinRAR can read default values of command line switches from rar.ini text file, which can be stored either in the same folder as WinRAR.exe or in %APPDATA%\WinRAR folder. This file includes strings in following format: switches= switches_= First applies switches to all and second to individual commands. For example: switches=-m5 -s switches_x=-o+ Most of switches specified in rar.ini are used only in the command line mode. Some switches can be applicable both in shell and in command line modes. Previously this rar.ini format was supported only by console RAR. 5. Command line -agf switch specifies the default format string for -ag switch. It has a practical value only if placed to rar.ini configuration file or to RAR environment variable. For example, if we set RAR environment variable to -agfYYYY-MMM-DD, we can use -ag without a parameter with YYYY-MMM-DD format string assumed. 6. Switches -ed and -e+d can be used in archive processing commands for any combination of RAR and archive operating systems. In older versions RAR for Windows could not use them for Unix RAR archives also as RAR for Unix for Windows RAR archives. 7. Previously "Test" command failed to check integrity of archived NTFS alternate data streams and issued "Unknown data header format" warning if size of such stream exceeded 16 MB. This limitation is removed now. 8. Archiving speed for large NTFS alternate data streams on multi-core CPUs is increased. 9. "Find" command: a) when extracting encrypted files directly from "Search results" dialog, password prompt was issued for every found file even if all files belonged to same archive. Now password is requested only once per archive; b) Ctrl+A hotkey selects all files in "Search results". 10. Archive comment window: a) previous versions did not allow to use Ctrl+W shortcut to close WinRAR when comment window had keyboard focus. Now Ctrl+W works also from comment window; b) mouse wheel is supported also for comments with ANSI Escape sequences; c) for some lenghty comments with ANSI Escape sequences last line of comment was visible only partially even after scrolling up to bottom. It is displayed comletely now. 11. Maximum path length for files in 7z archives is increased up to 2048 characters. While such lengthy paths were already supported for RAR and ZIP formats, previous versions limited the path length to 260 characters for 7z archives. 12. If archive or file name is too lengthy to fit to archiving or extraction progress window, it is truncated. Previously such names were truncated at the end, making the file extension invisible. This version truncates them removing the path component and symbols in the middle, but preserving beginning of file name and file extension. 13. If files selected for archiving differ only by extension, a proposed archive name is based on their name part. For example, archiving dialog will propose Readme.rar if we selected Readme.txt and Readme.doc. Previous versions always generated the archive name based on parent folder name for several selected files. 14. "Symlink" and "Hardlink" is diplayed in "Type" column for symlink and hardlink records in .tar archives. Previous versions displayed a proper type for such records only in .rar archives. 15. Copying and pasting files from large archives could fail if extraction took a lot of time. This version can paste files from such archives as well, but we have to start extraction already on "Copy" command and not on "Paste" to achieve this. 16. Similarly to RAR5 volumes, recovery volumes in RAR4 format use the same width of volume number field as corresponding RAR volumes. While previously WinRAR could create arc.part01.rar and arc.part1.rev in RAR4 format, now both types of volumes will use "part01". 17. "Set font..." button in "Settings/File list" also changes the folder tree panel font. Previously it changed only the file list font. 18. "Find files" and command line mode "i" commands: a) if "Use all tables" option or "t" modifer of "i" command are used, additionally to already supported ANSI, OEM and UTF-16 encodings WinRAR will search the specified string in UTF-8 files as well; b) better support for Unicode text strings; c) better performance, especially for case insensitive search; d) hexadecimal search output includes both text and hexadecimal representation of found matches. 19. File and total progress bar is displayed when unpacking tar.bz2, tar.gz, tar.lz, tar.xz, tar.z archives. Previously only the total progress was displayed properly for tar.bz2, tar.gz and tar.z. Neither file nor total progress was displayed for tar.lz and tar.xz. 20. "File list/Files/Exact sizes" option also changes the file size format in WinRAR status bar. 21. Bugs fixed: a) if non-existent path is specified in archive name in archiving dialog, WinRAR proposes to create such path. Previous versions could create such path in WinRAR start-up folder instead of currently displayed folder; b) WinRAR could crash when adding the recovery record in RAR5 format on CPUs not supporting CPUID EAX=7 command and returning random data in response. These are some CPUs from early 2000s; c) WinRAR failed to create archives after dragging files with right mouse button in Windows shell, dropping them to another folder, selecting "Add to archive..." in context menu and enabling "Put each file to separate archive" option; d) "winrar r *.zip" command repaired only the first ZIP archive in the set if all archives had numeric names like 1.zip, 2.zip and signatures in the beginning of archives were missing; e) previous WinRAR version failed to unpack folder records in archives created by RAR 1.50; f) in rare cases WinRAR failed to extract and reported an error for valid .gz archives produced by some compression optimization tools; g) progress bar in tray icon never reached 100% in high DPI mode; h) creation and last access time was not displayed for archived folders if folder records were stored in archive after folder contents; i) "Skip encrypted archives" option in "Convert archives" command did not work for 7-Zip archives with headers encryption.
Changes for v5.21 Beta 2 - v5.211. "Drag and drop context menu" options in "Settings/Integration/ Context menu items" dialog allow to disable WinRAR archiving and extraction commands in context menu displayed after dragging and dropping files with right mouse button.2. If winrar.ini file is present in the same folder as WinRAR installer, winrar.ini will be copied to WinRAR program folder after completing installation.3. While previous versions could produce RAR5 volumes of slightly smaller than requested size sometimes, such situation is less likely now. In most cases volume size equals to specified by user.4. Now by default WinRAR skips symbolic links with absolute paths in link target when extracting. You can enable creating such links with "Allow absolute paths in symbolic links" option on "Advanced" page of extraction dialog or with -ola command line switch. Such links pointing to folders outside of extraction destination folder can present a security risk. Enable their extraction only if you are sure that archive contents is safe, such as your own backup. 5. Bugs fixed:a) WinRAR 5.20 issued unnecessary user account control (UAC) prompt, when running an executable from archive stored in UAC protected folder. Since nothing is extracted to folder containing an archive in such case, UAC prompt is not needed;b) WinRAR could overwrite files with read-only attribute only when unpacking RAR and ZIP archive formats. Now it is also implemented for other archive formats supported by WinRAR;c) "Elapsed time" and "Time left" were displayed incorrectly when applying "Convert" command to multiple archives and enabling "Add recovery record" option. 041b061a72