Solved

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

Posted on 2011-09-03
9
404 Views
Last Modified: 2012-05-12
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
Comment
Question by:compuiter
  • 4
9 Comments
 
LVL 5

Expert Comment

by:Feebleminder
ID: 36479298
0
 
LVL 10

Accepted Solution

by:
Arman Khodabande earned 500 total points
ID: 36479332
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
 
LVL 10

Expert Comment

by:Arman Khodabande
ID: 36479368
@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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 59

Expert Comment

by:LeeTutor
ID: 36710619
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
 
LVL 10

Expert Comment

by:Arman Khodabande
ID: 36710621
The solution is provided but not attended by the author. It shouldn't be removed.
0
 
LVL 10

Expert Comment

by:Arman Khodabande
ID: 36935818
Thanks modus_in_rebus.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

By default, Carbonite Server Backup manages your encryption key for you using Advanced Encryption Standard (AES) 128-bit encryption. If you choose to manage your private encryption key, your backups will be encrypted using AES 256-bit encryption.
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
This tutorial will show how to configure a new Backup Exec 2012 server and move an existing database to that server with the use of the BEUtility. Install Backup Exec 2012 on the new server and apply all of the latest hotfixes and service packs. The…
This tutorial will walk an individual through the process of installing the necessary services and then configuring a Windows Server 2012 system as an iSCSI target. To install the necessary roles, go to Server Manager, and select Add Roles and Featu…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now