[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 449
  • Last Modified:

How to set WinRAR command line full month word with when compressing a file

How can i set with WinRAR command line full month word when compressing a file.

Scrpt:
rar.exe a -m5 "-agdd Mmm yyyy" -r "./backup " ".\files"

Instead of "Sep" i want "September"

and how can i add a password on the same script?
0
compuiter
Asked:
compuiter
  • 4
1 Solution
 
FeebleminderCommented:
0
 
Arman KhodabandeCommented:
I don't think that is possible to change sep to September. Because it's not defined in winrar!
But I think you can rename your files using a DOS ren command if your using this rar command in a Bat file.
This is password assignment procedure :
Using simple password structure: (Switch -P[pwd] - encrypt file data)
It only encrypts file content.
Example
adding the contents of the folder "games" to the archive "secret", using the password 12345

RAR.exe a -p12345 -r secret games\*.*

--------------------------------------------------------------------------------

Using advanced password structure: (Switch -HP[pwd] - encrypt both file data and headers)

This switch is similar to -p[p], but switch -p encrypts only file data and leaves other information like file names visible. This switch encrypts all sensitive archive areas including file data, file names, sizes, attributes, comments and other blocks, so it provides a higher security level.

Without a password it is impossible to view even the list of files in archive encrypted with -hp.

Example
add the file report.txt to the encrypted archive secret.rar using the password 123456
WinRAR a -hp123456 secret report.txt


0
 
Arman KhodabandeCommented:
@Feebleminder:
The formats you provided are for Linux and can not be used with Winrar !

@compuiter
You can use "Renamer" to rename your files after they were created by rar.exe.
Download it here:
http://www.den4b.com/?x=downloads&product=renamer

This program supports full month names and has a command line version.
After downloading the software go to it's user manual First.
0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LeeTutorretiredCommented:
I've requested that this question be deleted for the following reason:

This question has been classified as abandoned and is closed as part of the Cleanup Program. See the recommendation for more details.
0
 
Arman KhodabandeCommented:
The solution is provided but not attended by the author. It shouldn't be removed.
0
 
Arman KhodabandeCommented:
Thanks modus_in_rebus.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now